removed initial ray optimisations
added shadow optimisations