Copy link to clipboard
Copied
I've got a program that's longer than 200 opcodes. How can I deal with this?
Thanks!
Looks like there are 2 ways. For both ways you need to break up your program into smaller programs.
You can either do all the rendering on the back buffer and change the blend mode to additive (so your changes add up). Then do something like this:
clear
setProgram1
drawTris
setProgram2
drawTris
...
present
Or you can try rendering to a texture and then using that texture in further renderings (on the same frame). I couldn't get this way to work, but look into setRenderToTexture vs setRenderToBackBuffer
...Copy link to clipboard
Copied
Looks like there are 2 ways. For both ways you need to break up your program into smaller programs.
You can either do all the rendering on the back buffer and change the blend mode to additive (so your changes add up). Then do something like this:
clear
setProgram1
drawTris
setProgram2
drawTris
...
present
Or you can try rendering to a texture and then using that texture in further renderings (on the same frame). I couldn't get this way to work, but look into setRenderToTexture vs setRenderToBackBuffer.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now