2021-03-10 03:14:27 +00:00
|
|
|
|
|
|
|
out vec4 sk_FragColor;
|
2021-03-25 21:04:36 +00:00
|
|
|
uniform vec4 colorGreen;
|
|
|
|
vec4 multiplyByAlpha_h4h4(vec4 x) {
|
|
|
|
return x * x.wwww;
|
2021-03-10 03:14:27 +00:00
|
|
|
}
|
2021-03-22 15:43:11 +00:00
|
|
|
float add_hhh(float a, float b) {
|
2021-03-10 03:14:27 +00:00
|
|
|
float c = a + b;
|
|
|
|
return c;
|
|
|
|
}
|
2021-03-22 15:43:11 +00:00
|
|
|
float mul_hhh(float a, float b) {
|
2021-03-10 03:14:27 +00:00
|
|
|
return a * b;
|
|
|
|
}
|
2021-03-22 15:43:11 +00:00
|
|
|
float fma_hhhh(float a, float b, float c) {
|
|
|
|
return add_hhh(mul_hhh(a, b), c);
|
2021-03-10 03:14:27 +00:00
|
|
|
}
|
2021-03-25 21:04:36 +00:00
|
|
|
vec4 main() {
|
|
|
|
vec4 result = vec3(vec2(fma_hhhh(colorGreen.w, colorGreen.y, colorGreen.x)), 0.0).zxzy;
|
|
|
|
result = multiplyByAlpha_h4h4(result);
|
|
|
|
return result;
|
2021-03-10 03:14:27 +00:00
|
|
|
}
|