You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
489 B
22 lines
489 B
|
|
out vec4 sk_FragColor;
|
|
uniform vec4 colorGreen;
|
|
vec4 multiplyByAlpha_h4h4(vec4 x) {
|
|
return x * x.wwww;
|
|
}
|
|
float add_hhh(float a, float b) {
|
|
float c = a + b;
|
|
return c;
|
|
}
|
|
float mul_hhh(float a, float b) {
|
|
return a * b;
|
|
}
|
|
float fma_hhhh(float a, float b, float c) {
|
|
return add_hhh(mul_hhh(a, b), c);
|
|
}
|
|
vec4 main() {
|
|
vec4 result = vec3(vec2(fma_hhhh(colorGreen.w, colorGreen.y, colorGreen.x)), 0.0).zxzy;
|
|
result = multiplyByAlpha_h4h4(result);
|
|
return result;
|
|
}
|