diff --git a/servers/rendering/renderer_rd/shaders/forward_clustered/scene_forward_clustered.glsl b/servers/rendering/renderer_rd/shaders/forward_clustered/scene_forward_clustered.glsl index 20b080da4d8b..4a630b0b0a0e 100644 --- a/servers/rendering/renderer_rd/shaders/forward_clustered/scene_forward_clustered.glsl +++ b/servers/rendering/renderer_rd/shaders/forward_clustered/scene_forward_clustered.glsl @@ -352,7 +352,7 @@ void vertex_shader(vec3 vertex_input, } #ifdef OVERRIDE_POSITION - vec4 position; + vec4 position = vec4(1.0); #endif #ifdef USE_MULTIVIEW diff --git a/servers/rendering/renderer_rd/shaders/forward_mobile/scene_forward_mobile.glsl b/servers/rendering/renderer_rd/shaders/forward_mobile/scene_forward_mobile.glsl index a64b2e10ea08..530a7a37db87 100644 --- a/servers/rendering/renderer_rd/shaders/forward_mobile/scene_forward_mobile.glsl +++ b/servers/rendering/renderer_rd/shaders/forward_mobile/scene_forward_mobile.glsl @@ -352,7 +352,7 @@ void main() { } #ifdef OVERRIDE_POSITION - vec4 position; + vec4 position = vec4(1.0); #endif #ifdef USE_MULTIVIEW