mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Override GL_position
This commit is contained in:
parent
404f394226
commit
9f266cf7e5
5 changed files with 22 additions and 0 deletions
|
|
@ -306,6 +306,10 @@ void main() {
|
|||
uv2_interp = uv2_attrib;
|
||||
#endif
|
||||
|
||||
#ifdef OVERRIDE_POSITION
|
||||
highp vec4 position;
|
||||
#endif
|
||||
|
||||
#if defined(USE_INSTANCING) && defined(ENABLE_INSTANCE_CUSTOM)
|
||||
vec4 instance_custom = instance_custom_data;
|
||||
#else
|
||||
|
|
@ -461,7 +465,11 @@ VERTEX_SHADER_CODE
|
|||
|
||||
#endif //RENDER_DEPTH
|
||||
|
||||
#ifdef OVERRIDE_POSITION
|
||||
gl_Position = position;
|
||||
#else
|
||||
gl_Position = projection_matrix * vec4(vertex_interp, 1.0);
|
||||
#endif
|
||||
|
||||
position_interp = gl_Position;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue