fix projection matrix being sent to light manager
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-06-04 22:44:47 -04:00
parent 7558f20f60
commit d29a4f81f0
2 changed files with 2 additions and 1 deletions

View File

@ -2115,6 +2115,7 @@ Content debug supports rendering paths
Rendering ai pathfinding paths Rendering ai pathfinding paths
Simplify part of transvoxel algo Simplify part of transvoxel algo
Work on repairing particle system Work on repairing particle system
Fix projection matrix being sent to light manager

View File

@ -210,7 +210,7 @@ public class LightManager {
openGLState.setActiveShader(renderPipelineState, clusterComp); openGLState.setActiveShader(renderPipelineState, clusterComp);
clusterComp.setUniform(openGLState, "zNear", CameraEntityUtils.getNearClip(camera)); clusterComp.setUniform(openGLState, "zNear", CameraEntityUtils.getNearClip(camera));
clusterComp.setUniform(openGLState, "zFar", CameraEntityUtils.getFarClip(camera)); clusterComp.setUniform(openGLState, "zFar", CameraEntityUtils.getFarClip(camera));
clusterComp.setUniform(openGLState, "inverseProjection", new Matrix4d(Globals.renderingEngine.getViewMatrix()).invert()); clusterComp.setUniform(openGLState, "inverseProjection", new Matrix4d(Globals.renderingEngine.getProjectionMatrix()).invert());
clusterComp.setUniform(openGLState, "gridSize", new Vector3i(LIGHT_CLUSTER_WIDTH_X,LIGHT_CLUSTER_WIDTH_Y,LIGHT_CLUSTER_WIDTH_Z)); clusterComp.setUniform(openGLState, "gridSize", new Vector3i(LIGHT_CLUSTER_WIDTH_X,LIGHT_CLUSTER_WIDTH_Y,LIGHT_CLUSTER_WIDTH_Z));
clusterComp.setUniform(openGLState, "screenDimensions", openGLState.getViewport()); clusterComp.setUniform(openGLState, "screenDimensions", openGLState.getViewport());