123456789101112131415 |
- uniform lowp sampler2D sTexture;
- uniform lowp vec4 FlatColour;
- varying highp vec2 vTexCoord;
- varying highp float vDiffuse;
- void main()
- {
- lowp vec4 colour = texture2D(sTexture, vTexCoord);
- gl_FragColor.rgb = colour.rgb * vDiffuse;
- //gl_FragColor.rgb = FlatColour.rgb * vDiffuse;
- gl_FragColor.a = 1.0;
- }
|