Display generated source in the ShaderNode test

fix-456
Nehon 8 years ago
parent 5ac5731ebf
commit debd62ee87
  1. 7
      jme3-examples/src/main/java/jme3test/material/TestShaderNodes.java

@ -31,10 +31,9 @@ public class TestShaderNodes extends SimpleApplication {
mat.selectTechnique(TechniqueDef.DEFAULT_TECHNIQUE_NAME, renderManager); mat.selectTechnique(TechniqueDef.DEFAULT_TECHNIQUE_NAME, renderManager);
Technique t = mat.getActiveTechnique(); Technique t = mat.getActiveTechnique();
// for (Shader.ShaderSource shaderSource : t.getShader().getSources()) { for (Shader.ShaderSource shaderSource : t.getDef().getShader(assetManager, renderer.getCaps(), t.getDynamicDefines()).getSources()) {
// System.out.println(shaderSource.getSource()); System.out.println(shaderSource.getSource());
// } }
mat.setColor("Color", ColorRGBA.Yellow); mat.setColor("Color", ColorRGBA.Yellow);
mat.setTexture("ColorMap", tex); mat.setTexture("ColorMap", tex);

Loading…
Cancel
Save