d3c2bea75cc0b55ad80857069f45e4ac7094b387
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / vg / character.fs.glsl
1 out vec4 FragColor;
2
3 uniform sampler2D uTexMain;
4 uniform vec4 uColour;
5
6 in vec4 aColour;
7 in vec2 aUv;
8 in vec3 aNorm;
9 in vec3 aCo;
10 in float aOpacity;
11
12 void main()
13 {
14 vec3 diffuse = texture( uTexMain, aUv ).rgb;
15 FragColor = vec4(pow(diffuse,vec3(1.0)),aOpacity);
16 }