Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // vertex
- #version 420
- in vec2 pos;
- in vec2 texcoord;
- out vec2 tex_coord;
- void main()
- {
- gl_Position = vec4(pos, 0.0, 1.0);
- tex_coord = texcoord;
- }
- // fragment
- #version 420
- in vec2 tex_coord;
- out vec4 color;
- uniform sampler2D tex;
- void main()
- {
- color = texture(tex, tex_coord);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement