private void Update() { if (this.UpdateOnEveryFrame) { RTPFogUpdate.Refresh(this.LinearColorSpace); } }
void Update() { if (UpdateOnEveryFrame) { #if UNITY_EDITOR RTP_LODmanager LODmanager = GetComponent(typeof(RTP_LODmanager)) as RTP_LODmanager; if (LODmanager && prev_LinearColorSpace != LinearColorSpace) { prev_LinearColorSpace = LinearColorSpace; LODmanager.RTP_COLORSPACE_LINEAR = LinearColorSpace; } #endif RTPFogUpdate.Refresh(LinearColorSpace); } }
void Start() { RTPFogUpdate.Refresh(LinearColorSpace); Invoke("RefreshAll", 0.2f); }