mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #94629 from RandomShaper/fix_undef_position
Fix position from vertex shader partially uninitialized
This commit is contained in:
commit
139cf025c9
2 changed files with 2 additions and 2 deletions
|
|
@ -352,7 +352,7 @@ void vertex_shader(vec3 vertex_input,
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OVERRIDE_POSITION
|
#ifdef OVERRIDE_POSITION
|
||||||
vec4 position;
|
vec4 position = vec4(1.0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_MULTIVIEW
|
#ifdef USE_MULTIVIEW
|
||||||
|
|
|
||||||
|
|
@ -352,7 +352,7 @@ void main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OVERRIDE_POSITION
|
#ifdef OVERRIDE_POSITION
|
||||||
vec4 position;
|
vec4 position = vec4(1.0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_MULTIVIEW
|
#ifdef USE_MULTIVIEW
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue