Artifacts GONE!

Artifactes are gone but the solution added a lot of IF statements
resulting in a big performance loss. Light calculation is also optimized
but didn't get much performance from it.