shaderBoldColorLines.frag 281 Bytes
Newer Older
Sylvain Thery's avatar
Sylvain Thery committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// ShaderBoldColorLines::fragmentShaderText

PRECISION;

VARYING_FRAG vec3 fragColor;
uniform float alpha;
uniform vec4 planeClip;
VARYING_FRAG vec3 fragClip;

FRAG_OUT_DEF;

void main()
{
	if (dot(planeClip,vec4(fragClip,1.0))>0.0)
		discard;
	FRAG_OUT = vec4(fragColor,alpha);
}