protected void indent() {
        indent++;
        indent = Math.min(10, indent);
    }
increase indentation with a check so that indentation is never over 10
jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java