Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 300 es
- layout(location = 0) in vec4 a_position;
- layout(location = 1) in vec2 a_texCoord;
- out vec2 v_texCoord;
- void main()
- {
- gl_Position = a_position;
- v_texCoord = a_texCoord;
- }
- #version 300 es
- precision mediump float;
- in vec2 v_texCoord;
- layout(location = 0) out vec4 outColor;
- uniform sampler2D s_baseMap;
- uniform sampler2D s_lightMap;
- void main()
- {
- vec4 baseColor;
- vec4 lightColor;
- baseColor = texture( s_baseMap, v_texCoord );
- lightColor = texture( s_lightMap, v_texCoord );
- outColor = baseColor * (lightColor + 0.25);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement