This discussion is archived
1 Reply Latest reply: Nov 7, 2012 10:08 AM by 973046 RSS

Multiple ShaderAppearances - passing uniforms???

973046 Newbie
Currently Being Moderated
Hi,

I am writing GLSL shaders for my Java3D application. They work fine, and I can pass uniform variables ok, but what I don't get is since Java3D controls the rendering order, how I can have multiple ShaderAppearances and know when to send uniform data to the current shader. Is there a callback mechanism I need to be using? I assume I have to pass the uniforms by using ShaderAttributeSet.put(ShaderAttributeValue) but when?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points