diff options
author | Bastiaan Olij <mux213@gmail.com> | 2018-11-28 22:07:33 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2018-12-29 23:56:50 +1100 |
commit | 9f266cf7e5aa0c9953599453595a5720e9d0b08f (patch) | |
tree | a5a40d9c8bc32f8320038b9cf0833fe4ace216f8 /drivers/gles3/shaders | |
parent | 404f39422665375e62863c0247768759bb2cd0be (diff) |
Override GL_position
Diffstat (limited to 'drivers/gles3/shaders')
-rw-r--r-- | drivers/gles3/shaders/scene.glsl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index 8b1f18ccbd..df1645db1f 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -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; |