summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authornevarek <smithnathan339@gmail.com>2022-03-18 20:44:51 -0700
committernevarek <smithnathan339@gmail.com>2022-03-18 20:44:51 -0700
commit7543e22358b5883a72d93212ab2c3d6e8ec9bf00 (patch)
tree27d97ff4c26e525c026d70ea0421e8206cf4ca28 /servers
parent35eec4de40ed25eeb4423fcd6ae65936db9961ec (diff)
Add inverse projection matrix to fragment shader globals
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl b/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl
index c56ab5d7b2..33b0ee5fae 100644
--- a/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl
+++ b/servers/rendering/renderer_rd/shaders/scene_forward_clustered.glsl
@@ -456,8 +456,10 @@ layout(location = 9) in flat uint instance_index_interp;
#define model_matrix instances.data[instance_index].transform
#ifdef USE_MULTIVIEW
#define projection_matrix scene_data.projection_matrix_view[ViewIndex]
+#define inv_projection_matrix scene_data.inv_projection_matrix_view[ViewIndex]
#else
#define projection_matrix scene_data.projection_matrix
+#define inv_projection_matrix scene_data.inv_projection_matrix
#endif
#if defined(ENABLE_SSS) && defined(ENABLE_TRANSMITTANCE)