2018-02-23 12:06:20 +00:00
|
|
|
#version 450
|
2022-06-07 13:39:37 +00:00
|
|
|
#if defined(GL_ARB_gpu_shader_int64)
|
2018-02-23 12:06:20 +00:00
|
|
|
#extension GL_ARB_gpu_shader_int64 : require
|
2022-06-07 13:39:37 +00:00
|
|
|
#elif defined(GL_NV_gpu_shader5)
|
|
|
|
#extension GL_NV_gpu_shader5 : require
|
|
|
|
#else
|
|
|
|
#error No extension available for 64-bit integers.
|
|
|
|
#endif
|
2018-02-23 12:06:20 +00:00
|
|
|
|
|
|
|
layout(location = 0) out vec3 FragColor;
|
|
|
|
layout(location = 0) flat in double vTmp;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2021-05-26 14:43:26 +00:00
|
|
|
FragColor = vec3(dvec3(uint64BitsToDouble(0x7ff0000000000000ul /* inf */), uint64BitsToDouble(0xfff0000000000000ul /* -inf */), uint64BitsToDouble(0x7ff8000000000000ul /* nan */)) + dvec3(vTmp));
|
2018-02-23 12:06:20 +00:00
|
|
|
}
|
|
|
|
|