9746f20a04
Change-Id: I26754745aa26313a2f76a86bd41699c7ac5b8a46 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/441596 Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
34 lines
1.5 KiB
Plaintext
34 lines
1.5 KiB
Plaintext
uniform half4 colorGreen;
|
|
|
|
half4 main(float2 coords) {
|
|
half huge = 899999999.9 * 999999999.9 * 999999999.9 * 999999999.9 *
|
|
999999999.9 * 999999999.9 * 999999999.9 * 999999999.9 *
|
|
999999999.9 * 999999999.9 * 999999999.9 * 999999999.9 *
|
|
999999999.9 * 999999999.9;
|
|
|
|
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;
|
|
|
|
return colorGreen * saturate(huge) * saturate(half(hugeI)) * saturate(half(hugeU)) *
|
|
saturate(half(hugeS)) * saturate(half(hugeUS)) *
|
|
saturate(half(hugeNI)) * saturate(half(hugeNS));
|
|
}
|