diff options
| author | raysan5 <[email protected]> | 2016-04-07 11:48:09 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-04-07 11:48:09 +0200 |
| commit | 78b502b0bf1ee796d86837c611150ed5f8d58fd2 (patch) | |
| tree | f0efc476e32c3141e7a3395f32ac971caa478649 /shaders/gl330/phong.vs | |
| parent | 3b67a4cfba7d3b5dca805b1d1718fd2c9db64e99 (diff) | |
| download | raylib-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.vs | 27 |
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 |
