Welcome to mirror list, hosted at ThFree Co, Russian Federation.

inf-nan-constant.frag « frag « shaders - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 78b93c31e09998efdf2bff856a4d57bfad5bf6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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);
}