diff options
author | Bastiaan Olij <mux213@gmail.com> | 2023-02-01 12:33:22 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2023-02-01 12:39:13 +1100 |
commit | 8c77aea9ab245b4c685ba03670613a50efdbd1ea (patch) | |
tree | 43dd5b01eb085d7c8571b870b0e76a8d4e3e0842 /servers/rendering/renderer_rd/forward_clustered | |
parent | 0810ecaafdbee3ea747219e6ab3a8de5d2216a09 (diff) |
Expose EYE_OFFSET to gdshader code
Diffstat (limited to 'servers/rendering/renderer_rd/forward_clustered')
-rw-r--r-- | servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp b/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp index 2aaea4288b..d8e77366de 100644 --- a/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp +++ b/servers/rendering/renderer_rd/forward_clustered/scene_shader_forward_clustered.cpp @@ -625,6 +625,7 @@ void SceneShaderForwardClustered::init(const String p_defines) { actions.renames["VIEW_INDEX"] = "ViewIndex"; actions.renames["VIEW_MONO_LEFT"] = "0"; actions.renames["VIEW_RIGHT"] = "1"; + actions.renames["EYE_OFFSET"] = "eye_offset"; //for light actions.renames["VIEW"] = "view"; |