Refactored Ray

* renamed tNear to tNext
* renamed x to o
Removed hit variable
Added abstract material class