path tracing (with uniform sampling) ray-triangle intersection ray-sphere intersection area light sampling point light simple materials pinhole camera progressive preview for result image