• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1struct Attributes {
2    float2 position;
3};
4
5struct Varyings {
6    float2 position;
7    float4 color;
8};
9
10uniform shader myShader;
11
12Varyings main(const Attributes attr) {
13    return Varyings(attr.position, myShader.eval(attr.position));
14}
15
16/*%%*
17effects are not permitted in mesh vertex shaders
18*%%*/
19