mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 17:18:12 -05:00
30 lines
567 B
Text
30 lines
567 B
Text
attribute vec4 a_position;
|
|
uniform int u_iter;
|
|
uniform vec4 u_deltas[5];
|
|
void main ()
|
|
{
|
|
int i_1;
|
|
gl_Position = a_position;
|
|
i_1 = 0;
|
|
while (true) {
|
|
int tmpvar_2;
|
|
if ((u_iter < 5)) {
|
|
tmpvar_2 = u_iter;
|
|
} else {
|
|
tmpvar_2 = 5;
|
|
};
|
|
if ((i_1 >= tmpvar_2)) {
|
|
break;
|
|
};
|
|
gl_Position = (gl_Position + u_deltas[i_1]);
|
|
i_1++;
|
|
};
|
|
}
|
|
|
|
|
|
// stats: 6 alu 0 tex 3 flow
|
|
// inputs: 1
|
|
// #0: a_position (high float) 4x1 [-1]
|
|
// uniforms: 2 (total size: 0)
|
|
// #0: u_iter (high int) 1x1 [-1]
|
|
// #1: u_deltas (high float) 4x1 [5]
|