public void addSource(ShaderType type, String name, String source, String defines, String language){
        ShaderSource shaderSource = new ShaderSource(type);
        shaderSource.setSource(source);
        shaderSource.setName(name);
        shaderSource.setLanguage(language);
        if (defines != null) {
            shaderSource.setDefines(defines);
        }
        shaderSourceList.add(shaderSource);
        setUpdateNeeded();
    }
Adds source code to a certain pipeline.

@param type The pipeline to control
@param name a name for the new shader object
@param source The shader source code (in GLSL).
@param defines Preprocessor defines (placed at the beginning of the shader)
@param language The shader source language, currently accepted is GLSL###
where ### is the version, e.g. GLSL100 = GLSL 1.0, GLSL330 = GLSL 3.3, etc.
jme3-core/src/main/java/com/jme3/shader/Shader.java