summaryrefslogtreecommitdiffstats
path: root/o3d/compiler/glsl_validator/shaders/spirit-box.frag
blob: 30131439783ccfb95c262ce4409e61b960d4ec2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
uniform sampler2D sampler2d;

varying float v_Dot;
varying vec2 v_texCoord;

void main()
{
    vec2 texCoord = vec2(v_texCoord.s, 1.0 - v_texCoord.t);
    vec4 color = texture2D(sampler2d, texCoord);
    color += vec4(0.1, 0.1, 0.1, 1);
    gl_FragColor = vec4(color.xyz * v_Dot, color.a);
}