best way to disable jit.gl.slab

babette's icon

hi list,
i am new in the shader land.
i want to enable and disable a shader using jit.gl.slab.

there are 2 ways to do this
- using a gate
- sending dispose / read "myshader.jxs" (does not work with op.invert.jxs)

my question is: which is the most stable and efficient way ?

best,
babette

Luis Marques's icon

Hi,

Did you try to send a message to jit.gl.slab whit 'enable $1' ??

Luis Marques

babette's icon

sending a enable 0 switches the shader complete off.
so you can not make a shader chain.

carsol's icon

hey,
just in case that you need a specific invert shader to switch on/off in the slab chain,,, the v001.invert shader from vade works with the dispose method.
bye,
o