Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (fragment.glsl)
- varying vec3 f_color;
- void main(void) {
- gl_FragColor = vec4(f_color.x, f_color.y, f_color.z, 1.0);
- }
- (vertex.glsl)
- attribute vec3 coord3d;
- attribute vec3 v_color;
- varying vec3 f_color;
- void main(void) {
- gl_Position = vec4(coord3d, 1.0);
- f_color = v_color;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement