• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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