public void setVector4Length(int length){
        if (location == -1) {
            return;
        }

        multiData = BufferUtils.ensureLargeEnough(multiData, length * 4);
        value = multiData;
        varType = VarType.Vector4Array;
        updateNeeded = true;
        setByCurrentMaterial = true;
    }
Used to track which uniforms to clear to avoid
values leaking from other materials that use that shader.
jme3-core/src/main/java/com/jme3/shader/Uniform.java