Advertisement
Guest User

Untitled

a guest
Jun 9th, 2012
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.56 KB | None | 0 0
  1. //
  2. //  Shader.vsh
  3. //  OrthoTest
  4. //
  5. //
  6.  
  7. attribute vec4 position;
  8. //attribute vec3 normal;
  9.  
  10. varying lowp vec4 colorVarying;
  11.  
  12. uniform mat4 modelViewProjectionMatrix;
  13. //uniform mat3 normalMatrix;
  14.  
  15. void main()
  16. {
  17.     //vec3 eyeNormal = normalize(normalMatrix * normal);
  18.     //vec3 lightPosition = vec3(0.0, 0.0, 1.0);
  19.     vec4 diffuseColor = vec4(0.4, 0.4, 1.0, 1.0);
  20.    
  21.     //float nDotVP = max(0.0, dot(eyeNormal, normalize(lightPosition)));
  22.                  
  23.     colorVarying = diffuseColor;
  24.    
  25.     gl_Position = modelViewProjectionMatrix * position;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement