public void setTransparency(float transparency)
    {
        if (this.transparency != transparency)
        {
            this.transparency = Math.max(0, Math.min(1, transparency));
            vi = null;
        }
    }