Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 120
- uniform sampler2D texture;
- uniform sampler2D lightmap;
- varying vec4 color;
- varying vec4 texcoord;
- varying vec2 lmcoord;
- void main() {
- vec4 blockLight = texture2D(lightmap, vec2(0.99, 0.01));
- gl_FragData[0] = texture2D(texture, texcoord.st) * color * blockLight;
- }
Advertisement
Add Comment
Please, Sign In to add comment