You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Merge pull request #45741 from lyuma/override_position
Fix mismatched define in scene_forward.glsl for POSITION override
This commit is contained in:
@@ -203,7 +203,7 @@ void main() {
|
||||
uv2_interp = uv2_attrib;
|
||||
#endif
|
||||
|
||||
#ifdef USE_OVERRIDE_POSITION
|
||||
#ifdef OVERRIDE_POSITION
|
||||
vec4 position;
|
||||
#endif
|
||||
|
||||
@@ -298,7 +298,7 @@ VERTEX_SHADER_CODE
|
||||
|
||||
#endif //MODE_RENDER_DEPTH
|
||||
|
||||
#ifdef USE_OVERRIDE_POSITION
|
||||
#ifdef OVERRIDE_POSITION
|
||||
gl_Position = position;
|
||||
#else
|
||||
gl_Position = projection_matrix * vec4(vertex_interp, 1.0);
|
||||
|
||||
Reference in New Issue
Block a user