Colour inversion jit.world

Guilherme Viana's icon

Hello!

Quite new to Max/Jitter. Was working on this patcher (inspired by Ned Rush) and was looking into how to invert the colours (black to white and white to black) with a simple toggle to use during live performance. Tried to find something on this, but no luck. Any help appreciated!!

Max Patch
Copy patch and select New From Clipboard in Max.

Rob Ramirez's icon

the actual inversion is a super simple single line in a jit.gl.pix(codebox). The trick is structuring your patch to send the output as a texture to this pix process, and the solution is to utilize jit.gl.node for this. So both the mesh geometry and the pass post-process are added to the node, then the output of the pass is sent through the inversion and then along to the jit.world for display.

Max Patch
Copy patch and select New From Clipboard in Max.