summaryrefslogtreecommitdiffhomepage
path: root/src/shader_distortion.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_distortion.h')
-rw-r--r--src/shader_distortion.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shader_distortion.h b/src/shader_distortion.h
index 75653e12..3b37c630 100644
--- a/src/shader_distortion.h
+++ b/src/shader_distortion.h
@@ -1,6 +1,6 @@
// Vertex shader definition to embed, no external file required
-static const char vDistortionShaderStr[] =
+static const char distortionVShaderStr[] =
#if defined(GRAPHICS_API_OPENGL_21)
"#version 120 \n"
#elif defined(GRAPHICS_API_OPENGL_ES2)
@@ -20,16 +20,16 @@ static const char vDistortionShaderStr[] =
"out vec2 fragTexCoord; \n"
"out vec4 fragColor; \n"
#endif
-"uniform mat4 mvpMatrix; \n"
+"uniform mat4 mvp; \n"
"void main() \n"
"{ \n"
" fragTexCoord = vertexTexCoord; \n"
" fragColor = vertexColor; \n"
-" gl_Position = mvpMatrix*vec4(vertexPosition, 1.0); \n"
+" gl_Position = mvp*vec4(vertexPosition, 1.0); \n"
"} \n";
// Fragment shader definition to embed, no external file required
-static const char fDistortionShaderStr[] =
+static const char distortionFShaderStr[] =
#if defined(GRAPHICS_API_OPENGL_21)
"#version 120 \n"
#elif defined(GRAPHICS_API_OPENGL_ES2)