fix projection matrix being sent to light manager
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
7558f20f60
commit
d29a4f81f0
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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());
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user