1struct Attributes { 2 float2 position; 3 float4 src; 4 float4 dst; 5}; 6 7struct Varyings { 8 float2 position; 9 float4 color; 10}; 11 12uniform blender myBlender; 13 14Varyings main(const Attributes attr) { 15 return Varyings(attr.position, myBlender.eval(attr.src, attr.dst)); 16} 17 18/*%%* 19effects are not permitted in mesh vertex shaders 20*%%*/ 21