Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uniform mat4 uProjMatrix;
- uniform mat4 uViewMatrix;
- uniform mat4 uModelMatrix;
- attribute vec3 aPos;
- attribute vec4 aColor;
- attribute vec2 aTexCoord;
- varying vec4 vColor;
- varying vec2 vTexCoord;
- void main() {
- gl_Position = uProjMatrix * uViewMatrix * ( uModelMatrix * vec4( aPos, 1.0 ) );
- vColor = aColor;
- vTexCoord = aTexCoord;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement