aboutsummaryrefslogtreecommitdiff
path: root/shaders/glsl330/phong.vs
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-07-19 12:48:55 +0200
committerGitHub <noreply@github.com>2016-07-19 12:48:55 +0200
commitab0d19f356dc6aadff11ab4034880c8759315000 (patch)
treefcd102935dcbd0d007fc413e8e97ba9c4fd90701 /shaders/glsl330/phong.vs
parent13e18c23edb668e40d07c100fd1652c9c0af300b (diff)
parentc482f37dfde9343ee1cc315153dcef80254c7a0b (diff)
downloadraylib-1.5.0.tar.gz
raylib-1.5.0.zip
Merge pull request #137 from raysan5/develop1.5.0
Integrate Develop branch
Diffstat (limited to 'shaders/glsl330/phong.vs')
-rw-r--r--shaders/glsl330/phong.vs29
1 files changed, 0 insertions, 29 deletions
diff --git a/shaders/glsl330/phong.vs b/shaders/glsl330/phong.vs
deleted file mode 100644
index d68d9b3f..00000000
--- a/shaders/glsl330/phong.vs
+++ /dev/null
@@ -1,29 +0,0 @@
-#version 330
-
-// Input vertex attributes
-in vec3 vertexPosition;
-in vec2 vertexTexCoord;
-in vec3 vertexNormal;
-
-// Input uniform values
-uniform mat4 mvpMatrix;
-
-// Output vertex attributes (to fragment shader)
-out vec2 fragTexCoord;
-out vec3 fragNormal;
-
-// NOTE: Add here your custom variables
-uniform mat4 modelMatrix;
-
-void main()
-{
- // Send vertex attributes 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