Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //texture.vsh
- attribute vec4 a_position;
- attribute vec2 a_texCoord;
- varying vec2 v_texCoord;
- void main(void){
- gl_Position = a_position;
- v_texCoord = a_texCoord;
- }
- //texture.fsh
- precision mediump float;
- varying vec2 v_texCoord;
- uniform sampler2D s_texture;
- void main(void){
- gl_FragColor = texture2D(s_texture, v_texCoord);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement