[glow] fix clipping bug (#2902)

Now you can be blinded by the sun:

![image](https://github.com/open-goal/jak-project/assets/48171810/caf3903c-8333-4daa-89ba-ff83ca7d6b2f)
This commit is contained in:
water111
2023-08-14 18:52:25 -04:00
committed by GitHub
parent ac52be1a6c
commit a0da98a367
@@ -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