Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Shader.vsh
- // OrthoTest
- //
- //
- attribute vec4 position;
- //attribute vec3 normal;
- varying lowp vec4 colorVarying;
- uniform mat4 modelViewProjectionMatrix;
- //uniform mat3 normalMatrix;
- void main()
- {
- //vec3 eyeNormal = normalize(normalMatrix * normal);
- //vec3 lightPosition = vec3(0.0, 0.0, 1.0);
- vec4 diffuseColor = vec4(0.4, 0.4, 1.0, 1.0);
- //float nDotVP = max(0.0, dot(eyeNormal, normalize(lightPosition)));
- colorVarying = diffuseColor;
- gl_Position = modelViewProjectionMatrix * position;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement