mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
31 lines
567 B
Text
31 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]
|