Refactoring of AttenuationMode.
Refactoring of RayCaster.