Thanks, thats really cool! Do you have any specular ones or any other really cool shaders? Any resources on the net to download? I would love to get a nice realtime muted reflection if thats possible (I.E. Ibook plastic/Bjork Chris cunningham video) or something of the sort
I just went back to this file which I found on my drive, and realized I had never gotten it working, now that I know whats going on with shaders a bit, I realized that the java part which encompases the jitter param bindings isn't there. Is there a way someone could post the shader with all the java stuff in a jsx file?
Thanks Andy, I have seen this method and it works fine. The problem is that I need to use custom vertex and geom shaders and as soon as I connect jit.gl.material to my object (gl.mesh or whatever) all the shader data seems to be overwritten.
I don't really understand the design of the jit.gl.material in Jitter and how we should interact with our shader, if we want to take advantage of it.
And I can't really find any documentation about this, so that's why I'm looking for a bumb shader.
you can't use jit.gl.material and jit.gl.shader simultaneously, as you've discovered. it's one or the other. jit.gl.material is an object that auto-generates a shader based on the state of the object and 3d scene.
i've attached an example of a normal-map shader that is comparable to a jit.gl.material with normal and diffuse textures, and a single point-type light.