diff options
| author | raysan5 <raysan5@gmail.com> | 2016-01-16 12:52:55 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-01-16 12:52:55 +0100 |
| commit | 183795b8aa78fdf0b8064d72d77eaea8e7b6397b (patch) | |
| tree | 1d18bec6a5510d3c225f05d09cc9649492cb4209 /examples/resources/shaders/phong.vs | |
| parent | 91e00431d48ad90602af30ee015922243cf975cd (diff) | |
| download | raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.tar.gz raylib-183795b8aa78fdf0b8064d72d77eaea8e7b6397b.zip | |
Review literals type
Diffstat (limited to 'examples/resources/shaders/phong.vs')
| -rw-r--r-- | examples/resources/shaders/phong.vs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/resources/shaders/phong.vs b/examples/resources/shaders/phong.vs index c6ef77de..ee6d34bf 100644 --- a/examples/resources/shaders/phong.vs +++ b/examples/resources/shaders/phong.vs @@ -7,7 +7,6 @@ in vec3 vertexNormal; // Projection and model data uniform mat4 mvpMatrix; - uniform mat4 modelMatrix; // Attributes to fragment shader @@ -21,8 +20,8 @@ void main() // Calculate view vector normal from model mat3 normalMatrix = transpose(inverse(mat3(modelMatrix))); - fragNormal = normalize(normalMatrix * vertexNormal); + fragNormal = normalize(normalMatrix*vertexNormal); // Calculate final vertex position - gl_Position = projectionMatrix * modelviewMatrix * vec4(vertexPosition, 1.0); + gl_Position = mvpMatrix*vec4(vertexPosition, 1.0); }
\ No newline at end of file |
