skia2/tests/sksl/fp/GrChildProcessorSampleMatrixAndCoords.fp

8 lines
181 B
Plaintext
Raw Normal View History

uniform half4 color;
in fragmentProcessor child;
half4 main(float2 coord) {
float3x3 matrix = float3x3(color.a);
return sample(child, matrix) * sample(child, coord / 2);
}