2024-04-08 19:20:45 -04:00
|
|
|
#version 120
|
|
|
|
|
|
|
|
varying vec2 texcoord;
|
|
|
|
varying vec4 color;
|
2024-04-09 22:34:45 -04:00
|
|
|
varying vec2 lmcoord;
|
2024-04-08 19:20:45 -04:00
|
|
|
|
|
|
|
uniform sampler2D texture;
|
2024-04-09 22:34:45 -04:00
|
|
|
uniform sampler2D lightmap;
|
2024-04-08 19:20:45 -04:00
|
|
|
|
|
|
|
void main() {
|
|
|
|
vec4 final = texture2D(texture, texcoord) * color;
|
2024-04-09 22:34:45 -04:00
|
|
|
final *= texture2D(lightmap, lmcoord);
|
2024-04-08 19:20:45 -04:00
|
|
|
gl_FragData[0] = final;
|
|
|
|
}
|
|
|
|
|