diff --git a/jme3-examples/src/main/java/jme3test/material/TestShaderNodes.java b/jme3-examples/src/main/java/jme3test/material/TestShaderNodes.java index a580f54ed..b1683fcff 100644 --- a/jme3-examples/src/main/java/jme3test/material/TestShaderNodes.java +++ b/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); Technique t = mat.getActiveTechnique(); -// for (Shader.ShaderSource shaderSource : t.getShader().getSources()) { -// System.out.println(shaderSource.getSource()); -// } - + for (Shader.ShaderSource shaderSource : t.getDef().getShader(assetManager, renderer.getCaps(), t.getDynamicDefines()).getSources()) { + System.out.println(shaderSource.getSource()); + } mat.setColor("Color", ColorRGBA.Yellow); mat.setTexture("ColorMap", tex);