1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 layout(location=1) in vec2 scale;
4 float square(float arg)
10 float x_sq = square(scale.x);
11 float y_sq = square(scale.y);
12 gl_Position = position*sqrt(x_sq+y_sq);
17 /* Expected output: vertex
18 layout(location=0) in vec4 position;
19 layout(location=1) in vec2 scale;
20 float square(float arg)
26 gl_Position = position*sqrt(square(scale.x)+square(scale.y));