GLSL iFrame equivalent in GenExpr?


    Aug 05 2016 | 11: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 | 2:30 pm
      Not internally. Just send them in via params. I frame could easily be done with a counter, for example.
    • Aug 07 2016 | 8:48 am
      Good to know. Thanks.