47d0e01f12
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
15 lines
361 B
GLSL
15 lines
361 B
GLSL
|
|
|
|
uniform sampler2D tex_layout;
|
|
uniform sampler2D tex_detail0;
|
|
uniform sampler2D tex_detail1;
|
|
|
|
|
|
void main()
|
|
{
|
|
vec4 layout = texture2D(tex_layout, gl_TexCoord[0].st);
|
|
vec4 detail0 = texture2D(tex_detail0, gl_TexCoord[1].st);
|
|
vec4 detail1 = texture2D(tex_detail1, gl_TexCoord[1].st);
|
|
gl_FragColor = layout.r * detail0 + (1.0 - layout.r) * detail1;
|
|
}
|