mirror of
https://github.com/open-goal/jak-project
synced 2026-07-26 14:40:25 -04:00
[glow] fix clipping bug (#2902)
Now you can be blinded by the sun: 
This commit is contained in:
@@ -241,7 +241,9 @@ void copy_to_vertex(GlowRenderer::Vertex* vtx, const Vector4f& xyzw) {
|
||||
vtx->x = xyzw.x();
|
||||
vtx->y = xyzw.y();
|
||||
vtx->z = xyzw.z();
|
||||
vtx->w = xyzw.w();
|
||||
// ignore the w computed by the game, and just use 1. The game's VU program ignores this value,
|
||||
// and we need to set w = 1 to get the correct opengl clipping behavior
|
||||
vtx->w = 1;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user