aboutsummaryrefslogtreecommitdiff
path: root/examples/resources/shaders/base.vs
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-01-13 17:13:28 +0100
committerraysan5 <raysan5@gmail.com>2016-01-13 17:13:28 +0100
commitfb6ef2c2f4fe22552908d339cda541453e43faec (patch)
tree53d86522f6f1a5256e097a2e7bc82ce3e0101526 /examples/resources/shaders/base.vs
parentbb49102a4b5ae7bf6a34b437b133e8c5e3557f8d (diff)
downloadraylib-fb6ef2c2f4fe22552908d339cda541453e43faec.tar.gz
raylib-fb6ef2c2f4fe22552908d339cda541453e43faec.zip
Vertex shaders optimization
Diffstat (limited to 'examples/resources/shaders/base.vs')
-rw-r--r--examples/resources/shaders/base.vs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/resources/shaders/base.vs b/examples/resources/shaders/base.vs
index 59eae0a0..b0f930b7 100644
--- a/examples/resources/shaders/base.vs
+++ b/examples/resources/shaders/base.vs
@@ -6,8 +6,7 @@ in vec3 vertexNormal;
out vec2 fragTexCoord;
-uniform mat4 projectionMatrix;
-uniform mat4 modelviewMatrix;
+uniform mat4 mvpMatrix;
// NOTE: Add here your custom variables
@@ -15,5 +14,5 @@ void main()
{
fragTexCoord = vertexTexCoord;
- gl_Position = projectionMatrix*modelviewMatrix*vec4(vertexPosition, 1.0);
+ gl_Position = mvpMatrix*vec4(vertexPosition, 1.0);
} \ No newline at end of file