From e906eb8433bffa22e27662518d86df59653c80ae Mon Sep 17 00:00:00 2001 From: tomissj2 Date: Thu, 5 Oct 2023 22:12:50 +0200 Subject: [PATCH] Fog Shader bugfix: 'global_variables' : undeclared identifier If user try to use a global shader variable in a fog type shader we are getting shader error. The reason of this there is a typo in the fog.cpp. I other well working shaders types like sky the "action.global_buffer_array_variable" is "global_shader_uniforms.data". The investigation tracked here: https://discord.com/channels/212250894228652034/1158918161337434172 --- servers/rendering/renderer_rd/environment/fog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/rendering/renderer_rd/environment/fog.cpp b/servers/rendering/renderer_rd/environment/fog.cpp index 5e1014e0de1..c82a81e088b 100644 --- a/servers/rendering/renderer_rd/environment/fog.cpp +++ b/servers/rendering/renderer_rd/environment/fog.cpp @@ -228,7 +228,7 @@ void Fog::init_fog_shader(uint32_t p_max_directional_lights, int p_roughness_lay actions.default_filter = ShaderLanguage::FILTER_LINEAR_MIPMAP; actions.default_repeat = ShaderLanguage::REPEAT_DISABLE; - actions.global_buffer_array_variable = "global_variables.data"; + actions.global_buffer_array_variable = "global_shader_uniforms.data"; volumetric_fog.compiler.initialize(actions); }