summaryrefslogtreecommitdiffhomepage
path: root/shaders/gl330/phong.vs
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-04-07 11:48:09 +0200
committerraysan5 <[email protected]>2016-04-07 11:48:09 +0200
commit78b502b0bf1ee796d86837c611150ed5f8d58fd2 (patch)
treef0efc476e32c3141e7a3395f32ac971caa478649 /shaders/gl330/phong.vs
parent3b67a4cfba7d3b5dca805b1d1718fd2c9db64e99 (diff)
downloadraylib-78b502b0bf1ee796d86837c611150ed5f8d58fd2.tar.gz
raylib-78b502b0bf1ee796d86837c611150ed5f8d58fd2.zip
Folders rename for consistency on shaders version
Diffstat (limited to 'shaders/gl330/phong.vs')
-rw-r--r--shaders/gl330/phong.vs27
1 files changed, 0 insertions, 27 deletions
diff --git a/shaders/gl330/phong.vs b/shaders/gl330/phong.vs
deleted file mode 100644
index ee6d34bf..00000000
--- a/shaders/gl330/phong.vs
+++ /dev/null
@@ -1,27 +0,0 @@
-#version 330
-
-// Vertex input data
-in vec3 vertexPosition;
-in vec2 vertexTexCoord;
-in vec3 vertexNormal;
-
-// Projection and model data
-uniform mat4 mvpMatrix;
-uniform mat4 modelMatrix;
-
-// Attributes to fragment shader
-out vec2 fragTexCoord;
-out vec3 fragNormal;
-
-void main()
-{
- // Send texture coord to fragment shader
- fragTexCoord = vertexTexCoord;
-
- // Calculate view vector normal from model
- mat3 normalMatrix = transpose(inverse(mat3(modelMatrix)));
- fragNormal = normalize(normalMatrix*vertexNormal);
-
- // Calculate final vertex position
- gl_Position = mvpMatrix*vec4(vertexPosition, 1.0);
-} \ No newline at end of file