Test
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#version 120
|
||||
|
||||
|
||||
uniform sampler2D texture;
|
||||
uniform sampler2D lightmap;
|
||||
|
||||
varying vec4 color;
|
||||
varying vec4 texcoord;
|
||||
varying vec4 lmcoord;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragData[0] = texture2D(texture, texcoord.st) * texture2D(lightmap, lmcoord.st) * color;
|
||||
|
||||
gl_FragData[0].rgb = mix(gl_FragData[0].rgb, gl_Fog.color.rgb, clamp((gl_FogFragCoord - gl_Fog.start) * gl_Fog.scale, 0.0, 1.0));
|
||||
}
|
||||
Reference in New Issue
Block a user