// Update is called once per frame void Update() { var velocity = shipControl.GetVelocity(); var maxSpeed = shipControl.maxSpeed; chromaticAberration.intensity.value = (velocity / maxSpeed) * .75f; }