skia2/tests/sksl/shared/SwizzleScalar.glsl

12 lines
287 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform float unknownInput;
vec4 main() {
float x = unknownInput;
vec4 v = vec4(vec2(x), 0.0, 1.0);
v = vec4(vec2(unknownInput), 0.0, 1.0);
v = vec4(0.0, unknownInput, 1.0, 0.0);
v = vec4(0.0, unknownInput, 0.0, unknownInput);
return v;
}