summaryrefslogtreecommitdiffstats
path: root/servers
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-24 09:59:24 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-24 09:59:24 +0200
commit139cf025c90ca11f2c74e13ffdfed16a05b840f3 (patch)
tree125e33f439cea8f416145c1861d5d65f6e85e397 /servers
parente91725f4900c3da5ead1f9f10a997bf8e68a9e04 (diff)
parent0064532c1e4952aec522736dfb64217b8cdd6d9b (diff)
downloadredot-engine-139cf025c90ca11f2c74e13ffdfed16a05b840f3.tar.gz
Merge pull request #94629 from RandomShaper/fix_undef_position
Fix position from vertex shader partially uninitialized
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/renderer_rd/shaders/forward_clustered/scene_forward_clustered.glsl2
-rw-r--r--servers/rendering/renderer_rd/shaders/forward_mobile/scene_forward_mobile.glsl2
2 files changed, 2 insertions, 2 deletions
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 20b080da4d..4a630b0b0a 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 a64b2e10ea..530a7a37db 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