protected boolean isWorldOrMaterialParam(ShaderNodeVariable var) {
        return var.getNameSpace().equals("MatParam") || var.getNameSpace().equals("WorldParam");
    }
Finds if a variable is a world or a material parameter
@param var the variable
@return true if the variable is a Word or material parameter
jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java