shaderScalarField.frag 307 Bytes
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2
// ShaderScalarField::fragmentShaderText

3
PRECISION;
4 5
uniform float minValue;
uniform float maxValue;
Pierre Kraemer's avatar
Pierre Kraemer committed
6 7 8
VARYING_FRAG vec3 color;
VARYING_FRAG float scalar;
FRAG_OUT_DEF;
9

Pierre Kraemer's avatar
Pierre Kraemer committed
10 11
void main()
{
12 13
//	float s = scalar * 10.0;
//	if( s - floor(s) <= 0.05 )
14
//		FRAG_OUT = vec4(0.0);
15
//	else
16
		FRAG_OUT = vec4(color, 0.0);
Pierre Kraemer's avatar
Pierre Kraemer committed
17
}