1 # Test proper behavior of the isnan(vec3) function.
3 # Note: testing behavior if isnan() is challenging because the GLSL
4 # 1.30 spec does not explicitly define any circumstances under which
5 # NaN values are required to be generated. This test assumes that the
6 # expression 0.0/0.0 produces a NaN value when evaluated in the
16 gl_Position = gl_Vertex;
21 uniform vec3 numerator;
22 uniform vec3 denominator;
26 gl_FragColor = vec4(isnan(numerator/denominator), 1.0);
30 uniform vec3 numerator 1.0 0.0 0.0
31 uniform vec3 denominator 1.0 0.0 0.0
33 probe rgba 0 0 0.0 1.0 1.0 1.0
34 uniform vec3 numerator 0.0 1.0 1.0
35 uniform vec3 denominator 0.0 1.0 1.0
37 probe rgba 1 0 1.0 0.0 0.0 1.0