Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- attribute vec3 aVertexPosition;
- attribute vec4 aVertexColor;
- uniform mat4 uMVMatrix;
- uniform mat4 uPMatrix;
- varying vec4 vColor;
- varying vec3 vFragmentPosition;
- uniform float f; // this is incremented every frame
- uniform float t; // this is time in milliseconds since epoch
- void main(void) {
- gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1);
- vFragmentPosition = aVertexPosition.xyz;
- vColor = vec4(1.0,1.0,1.0,1.0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement