protected void declareGlobalPosition(ShaderGenerationInfo info, StringBuilder source) {
        if(inPosTmp.getType().equals(info.getVertexGlobal().getType())){
            declareVariable(source, info.getVertexGlobal(), "inPosition");
        }else{
            declareVariable(source, info.getVertexGlobal(), "vec4(inPosition,1.0)");
        }
    }
declare and assign the global position in the vertex shader.
@param info the shader generation info
@param source the shader source being generated
jme3-core/src/main/java/com/jme3/shader/Glsl100ShaderGenerator.java