GLSL iFrame equivalent in GenExpr?

metamax's icon

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?

Graham Wakefield's icon

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

metamax's icon

Good to know. Thanks.