SPIRV-Cross/shaders-hlsl/frag/inf-nan-constant.frag
2018-02-23 13:06:20 +01:00

15 lines
234 B
GLSL

#version 310 es
precision highp float;
const float posinf = 1.0 / 0.0;
const float neginf = -1.0 / 0.0;
const float nan = 0.0 / 0.0;
layout(location = 0) out vec3 FragColor;
void main()
{
FragColor = vec3(posinf, neginf, nan);
}