Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// FRAGMENT
- #version 140
- out vec4 fs_color;
- void main() {
- fs_color = vec4(1, 1, 0, 1);
- }
- /// VERTEX
- #version 140
- in vec2 v_position;
- uniform mat3 u_transform;
- void main() {
- vec3 positionVector = u_transform * vec3(v_position, 1);
- gl_Position = vec4(positionVector.xy, 0, positionVector.z);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement