Code reduction for raytracer.frag