From 9500b43aa9673f7a8a803f740ee34aa33cefd8d7 Mon Sep 17 00:00:00 2001 From: Nehon Date: Fri, 13 Feb 2015 10:43:01 +0100 Subject: [PATCH] some clean up in the ShaderGenerator --- .../java/com/jme3/shader/ShaderGenerator.java | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java b/jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java index 5035ff787..f5aeca2ed 100644 --- a/jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java +++ b/jme3-core/src/main/java/com/jme3/shader/ShaderGenerator.java @@ -48,11 +48,17 @@ import java.util.List; */ public abstract class ShaderGenerator { - //the asset manager + /** + * the asset manager + */ protected AssetManager assetManager; - //indentation value for generation + /** + * indentation value for generation + */ protected int indent; - //the technique to use for the shader generation + /** + * the technique to use for the shader generation + */ protected Technique technique = null; /** @@ -163,6 +169,7 @@ public abstract class ShaderGenerator { * @see ShaderGenerator#generateNodeMainSection * * @param loadedSource the actual source code loaded for this node. + * @param shaderPath path the the shader file * @param sourceDeclaration the Shader declaration part string builder. * @param source the Shader main part StringBuilder. * @param shaderNode the shader node. @@ -230,10 +237,10 @@ public abstract class ShaderGenerator { * * @see ShaderNode#getDefinition() * @see ShaderNodeDefinition#getType() - * + * + * @param nodeDecalarationSource the declaration part of the node * @param source the StringBuilder to append generated code. * @param shaderNode the shaderNode. - * @param nodeSource the declaration part of the loaded shaderNode source. * @param info the ShaderGenerationInfo. */ protected abstract void generateDeclarativeSection(StringBuilder source, ShaderNode shaderNode, String nodeDecalarationSource, ShaderGenerationInfo info);