ref: ede541db0a71d4a58b95c0af514304e36bd7e4c3
parent: 4cbc56e272c4e90348cdfd7ab88edf243d881df1
author: Clownacy <[email protected]>
date: Mon Jan 20 08:19:02 EST 2020
Clean up the OpenGL shaders a bit
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -93,7 +93,7 @@
attribute vec2 input_vertex_coordinates; \
void main() \
{ \
- gl_Position = vec4(input_vertex_coordinates.x, input_vertex_coordinates.y, 0.0, 1.0); \
+ gl_Position = vec4(input_vertex_coordinates.xy, 0.0, 1.0); \
} \
";
@@ -105,7 +105,7 @@
void main() \
{ \
texture_coordinates = input_texture_coordinates; \
- gl_Position = vec4(input_vertex_coordinates.x, input_vertex_coordinates.y, 0.0, 1.0); \
+ gl_Position = vec4(input_vertex_coordinates.xy, 0.0, 1.0); \
} \
";
@@ -186,7 +186,7 @@
in vec2 input_vertex_coordinates; \
void main() \
{ \
- gl_Position = vec4(input_vertex_coordinates.x, input_vertex_coordinates.y, 0.0, 1.0); \
+ gl_Position = vec4(input_vertex_coordinates.xy, 0.0, 1.0); \
} \
";
@@ -198,7 +198,7 @@
void main() \
{ \
texture_coordinates = input_texture_coordinates; \
- gl_Position = vec4(input_vertex_coordinates.x, input_vertex_coordinates.y, 0.0, 1.0); \
+ gl_Position = vec4(input_vertex_coordinates.xy, 0.0, 1.0); \
} \
";