@Override
    public void setUpdateNeeded(){
        super.setUpdateNeeded();
        resetLocations();
    }
Usually called when the shader itself changes or during any
time when the variable locations need to be refreshed.
jme3-core/src/main/java/com/jme3/shader/Shader.java