From debd62ee87864eb6aba260606f1aafcc0797886c Mon Sep 17 00:00:00 2001 From: Nehon Date: Sat, 8 Jul 2017 14:06:42 +0200 Subject: [PATCH] Display generated source in the ShaderNode test --- .../src/main/java/jme3test/material/TestShaderNodes.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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);