possible to attach shader straight to texture?

Feb 23, 2013 at 11:23pm

possible to attach shader straight to texture?

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. –
#50299
Feb 25, 2013 at 7:22pm

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.

#180436
Feb 25, 2013 at 9:47pm

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. –
#180437
Feb 26, 2013 at 10:01pm

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.

#180438

You must be logged in to reply to this topic.