 A more sophisticated method is to modify the colour value by an illumination factor, but without calculating the relationship to a simulated light source.To reduce artifacts, a number of rays in slightly different directions may be averaged.Ray casting involves calculating the "view direction" (from camera position), and incrementally following along that "ray cast" through "solid 3d objects" in the scene, while accumulating the resulting value from each point in 3D space.