2021-05-27 16:26:37 +00:00
|
|
|
uniform half4 colorGreen;
|
|
|
|
|
2021-05-26 20:43:19 +00:00
|
|
|
half4 main(float2 coords) {
|
2021-08-24 15:54:22 +00:00
|
|
|
half huge = 899999999.9 * 999999999.9 * 999999999.9 * 999999999.9 *
|
2021-05-26 20:43:19 +00:00
|
|
|
999999999.9 * 999999999.9 * 999999999.9 * 999999999.9 *
|
|
|
|
999999999.9 * 999999999.9 * 999999999.9 * 999999999.9 *
|
|
|
|
999999999.9 * 999999999.9;
|
2021-05-27 16:26:37 +00:00
|
|
|
|
|
|
|
int hugeI = 16384
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2;
|
|
|
|
|
|
|
|
uint hugeU = uint(16384)
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2;
|
|
|
|
|
|
|
|
short hugeS = short(8192)
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2;
|
|
|
|
|
|
|
|
ushort hugeUS = ushort(8192)
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2;
|
|
|
|
|
|
|
|
int hugeNI = -16384
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2;
|
|
|
|
|
|
|
|
short hugeNS = short(-8192)
|
|
|
|
* 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2 * 2;
|
|
|
|
|
2021-10-27 14:09:05 +00:00
|
|
|
const int4 i4 = int4(2, 2, 2, 2);
|
|
|
|
int4 hugeIvec = i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 *
|
|
|
|
i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 *
|
|
|
|
i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4 * i4;
|
|
|
|
|
|
|
|
const uint4 u4 = uint4(2, 2, 2, 2);
|
|
|
|
uint4 hugeUvec = u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 *
|
|
|
|
u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 *
|
|
|
|
u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4 * u4;
|
|
|
|
|
2021-05-27 16:26:37 +00:00
|
|
|
return colorGreen * saturate(huge) * saturate(half(hugeI)) * saturate(half(hugeU)) *
|
|
|
|
saturate(half(hugeS)) * saturate(half(hugeUS)) *
|
2021-10-27 14:09:05 +00:00
|
|
|
saturate(half(hugeNI)) * saturate(half(hugeNS)) *
|
|
|
|
saturate(half4(hugeIvec)) * saturate(half4(hugeUvec));
|
2021-05-26 20:43:19 +00:00
|
|
|
}
|