possible to attach shader straight to texture?

Per's icon

cant get it to work with the cf.edgedetect.jxs

I know that I can attach the shader to the jit.gl.gridshape instead but not what I want to do for different reasons ...

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

thanks for help

Rob Ramirez's icon

this is exactly what the jit.gl.slab object is for.
don't create a jit.gl.texture and a jit.gl.shader. simply create a jit.gl.slab and read in your shader file.

Per's icon
Max Patch
Copy patch and select New From Clipboard in Max.

thanks, I figured it out. but what do you mean by dont create jit.gl.texture? now I did put jit.gl.slab before jit.gl.texture. is not that the way to go? like this:

Rob Ramirez's icon

that's fine.
alternatively you can simply connect the output of the gl.slab directly to the input of the gl.mesh, and remove the @texture attribute from the gl.mesh box.

two ways of doing the same thing.