Forums > MaxMSP

possible to attach shader straight to texture?


Per
February 23, 2013 | 11:23 pm

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 …

thanks for help

– Pasted Max Patch, click to expand. –

February 25, 2013 | 7:22 pm

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
February 25, 2013 | 9:47 pm

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:

– Pasted Max Patch, click to expand. –

February 26, 2013 | 10:01 pm

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.


Viewing 4 posts - 1 through 4 (of 4 total)