Ray-tracing almost works perfecly now.