Forums > Gen

GLSL iFrame equivalent in GenExpr?

Aug 05 2016 | 4:52 pm

How are WebGL iFrame (current frame) and iFrameRate (fps) handled within Gen? The code usually goes something like a = (iFrame>10) ? b : c;

How do I implement that in pix/gen objects? Do I need to output the texture into an object that tracks frames and send the frame count to Gen via param or is there a way for Gen to internally track the current frame?

Aug 06 2016 | 7:30 am

Not internally. Just send them in via params. I frame could easily be done with a counter, for example.

Aug 07 2016 | 1:48 am

Good to know. Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Gen