public void OnChangedQuality() { tracer.highQuality = hqToggle.isOn; tracer.ResetAccumulation(); // Avoid smearing artifacts from moving objects by freezing time. Time.timeScale = (tracer.highQuality) ? 0f : 1f; }