Shader Nodes : fixed an issue in the shader generator that was caussing an error when there was a "//" comment in the declarative section of a node glsl code

experimental
Nehon 10 years ago
parent 9b41b66756
commit 7e78651ed4
  1. 1
      jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java

@ -127,6 +127,7 @@ public class Glsl100ShaderGenerator extends ShaderGenerator {
unIndent(); unIndent();
startCondition(shaderNode.getCondition(), source); startCondition(shaderNode.getCondition(), source);
source.append(nodeSource); source.append(nodeSource);
source.append("\n");
endCondition(shaderNode.getCondition(), source); endCondition(shaderNode.getCondition(), source);
indent(); indent();
} }

Loading…
Cancel
Save