How to use a Shader in Java3D?

Hi,
I’m trying to put a shader made in Cg in a Java3D animation.
But I really don’t know how to do it!

I was trying to create a moon sphere and than use a shader to chance the appearance of this moon.
After creating the moon, it’s texture etc, how can I put a shader on this animation?
Does anyone know how to do it??

Does Java3D even support Shader technology? Maybe you should take a look into the Java3D documentation for further information.

Yes, Java3D 1.4.0 supports shader technology.

there are several classes like: ShaderAppearance, ShaderProgram etc
but I don’t know how to use them in an animation
I’ve looked the java3D documentation but I haven’t got any succeed on loading a shader to change the appearance of an object

Id suggest you mvoe this to the Java3D forum. More likely to get a detailed answer there.