rebuilding shader to remove conditional in raycast algo