summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/forward_mobile
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2022-06-09 20:12:25 +0300
committerYuri Rubinsky <chaosus89@gmail.com>2022-06-09 20:12:25 +0300
commitd8842f1a4b2f000c1ea1d033c08e6aa10c12f21a (patch)
tree25be23d0839ff0db7c07de3e6bb55342ebf95251 /servers/rendering/renderer_rd/forward_mobile
parentb36447f6f09ac608bfa76dda6a50ac92c7040077 (diff)
Fix `TIME` compilation for custom functions in spatial shader
Diffstat (limited to 'servers/rendering/renderer_rd/forward_mobile')
-rw-r--r--servers/rendering/renderer_rd/forward_mobile/scene_shader_forward_mobile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/forward_mobile/scene_shader_forward_mobile.cpp b/servers/rendering/renderer_rd/forward_mobile/scene_shader_forward_mobile.cpp
index a3cabb0693..f66ad529de 100644
--- a/servers/rendering/renderer_rd/forward_mobile/scene_shader_forward_mobile.cpp
+++ b/servers/rendering/renderer_rd/forward_mobile/scene_shader_forward_mobile.cpp
@@ -529,7 +529,7 @@ void SceneShaderForwardMobile::init(RendererStorageRD *p_storage, const String p
//builtins
- actions.renames["TIME"] = "scene_data.time";
+ actions.renames["TIME"] = "scene_data_block.data.time";
actions.renames["PI"] = _MKSTR(Math_PI);
actions.renames["TAU"] = _MKSTR(Math_TAU);
actions.renames["E"] = _MKSTR(Math_E);