yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
ac5341fe
main
1#version 300 es 2precision highp float ; 3out vec4 my_FragColor; 4void main() 5{ 6// Out-of-range floats should overflow to infinity 7// GLSL ES 3.00.6 section 4.1.4 Floats: 8// "If the value of the floating point number is too large (small) to be stored as a single precision value, it is converted to positive (negative) infinity" 9float correct = isinf( 1.0e2147483649 ) ? 1.0 : 0.0 ; 10my_FragColor = vec4( 0.0 , correct, 0.0 , 1.0 ); 11}