Browse Source

Micro-optimized Phong vertex shader.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
1306ec5b75
  1. 2
      src/Shaders/PhongShader.vert

2
src/Shaders/PhongShader.vert

@ -22,5 +22,5 @@ void main() {
lightDirection = normalize(light.xyz - transformedVertex); lightDirection = normalize(light.xyz - transformedVertex);
/* Transform the vertex */ /* Transform the vertex */
gl_Position = projectionMatrix*transformationMatrix*vertex; gl_Position = projectionMatrix*transformedVertex4;
} }

Loading…
Cancel
Save