shaderBoldLines.frag 236 Bytes
Newer Older
Sylvain Thery's avatar
Sylvain Thery committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// ShaderBoldLines::fragmentShaderText

PRECISION;
uniform vec4 lineColor;
uniform vec4 planeClip;
VARYING_FRAG vec3 fragClip;
FRAG_OUT_DEF;

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