xref: /aosp_15_r20/external/skia/resources/sksl/mesh/MeshFragment.mfrag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1struct Varyings {
2    float2 position;
3    float2 coords;
4};
5
6uniform half3x3 m;
7layout(color) uniform half4 color;
8
9float2 main(const Varyings varyings, out half4 c) {
10    c = color;
11    return (m*float3(varyings.coords, 1)).xy;
12}
13