shaderSimpleColor.frag 197 Bytes
Newer Older
1
2
3
4
5
6
7
// ShaderSimpleColor::fragmentShaderText

PRECISON;
uniform vec4 color;
FRAG_OUT_DEF;
void main()
{
8
9
10
11
#ifdef BLACK_TRANSPARENCY
	if (dot(color,color) == 0.0)
		discard;
#endif
12
13
	gl_FragColor=color;
}