1 # Test proper behavior of the isinf(vec2) 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.
14 uniform vec2 multiplier;
15 uniform vec2 exponent;
19 gl_Position = gl_Vertex;
20 gl_FrontColor = vec4(isinf(multiplier*exp(exponent)), 0.0, 1.0);
27 gl_FragColor = gl_Color;
31 uniform vec2 multiplier 1.0 1.0
32 uniform vec2 exponent 1.0 1000.0
34 probe rgba 0 0 0.0 1.0 0.0 1.0
35 uniform vec2 multiplier -1.0 -1.0
36 uniform vec2 exponent 1000.0 1.0
38 probe rgba 1 0 1.0 0.0 0.0 1.0