Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // passthrough.vert
- #version 120
- attribute vec3 position;
- attribute vec4 incolor;
- varying vec3 vertex;
- varying vec4 color;
- void main() {
- vertex = position;
- color = incolor;
- gl_Position = vec4(position, 1);
- }
- // passthrough.frag
- #version 120
- varying vec3 vertex;
- varying vec4 color;
- void main() {
- gl_FragColor = color;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement