1 # Test proper behavior of the isinf(vec3) function.
3 # Note: testing behavior if isinf() is challenging because the GLSL
4 # 1.30 spec does not explicitly define any circumstances under which
5 # infinite values are required to be generated. This test assumes
6 # that the expressions 1.0*exp(1000.0) and -1.0*exp(1000.0) produce
7 # infinite values when evaluated in the shader.
16 gl_Position = gl_Vertex;
21 uniform vec3 multiplier;
22 uniform vec3 exponent;
26 gl_FragColor = vec4(isinf(multiplier*exp(exponent)), 1.0);
30 uniform vec3 multiplier 1.0 1.0 -1.0
31 uniform vec3 exponent 1.0 1000.0 1000.0
33 probe rgba 0 0 0.0 1.0 1.0 1.0
34 uniform vec3 multiplier -1.0 -1.0 1.0
35 uniform vec3 exponent 1000.0 1.0 1.0
37 probe rgba 1 0 1.0 0.0 0.0 1.0