1531446fb2
These two patches allow use of external shaders as the tree and 3d cloud shaders. The shaders are Shaders/3dcloud.{frag|vert} and Shaders/tree.{frag|vert}. If the shader files are not found, the original shaders included in the source are used. This makes testing modifications to the shaders easier and faster. End users should see no difference when using this.
9 lines
235 B
GLSL
9 lines
235 B
GLSL
uniform sampler2D baseTexture;
|
|
varying float fogFactor;
|
|
|
|
void main(void)
|
|
{
|
|
vec4 base = texture2D( baseTexture, gl_TexCoord[0].st);
|
|
vec4 finalColor = base * gl_Color;
|
|
gl_FragColor = mix(gl_Fog.color, finalColor, fogFactor );
|
|
}
|