possible to attach shader straight to texture?

    Feb 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

    • Feb 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.
    • Feb 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:
    • Feb 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.