Materials and Direct Lighting
Latest developments:
- Axes and rotation directions are in line with Blender.
This means that the camera and light source positions and rotations can simply be copied from Blender and be given to the ray tracer in order to position them in an identical manner.
One must, however, be sure to export the
.obj
file with “up” set to the Z axis, and “forward” set to Y. - The ray tracer can color objects based on the
.mtl
files that Blender exports alongside the.obj
files. While the.obj
file path is given as the first argument to the program, the.mtl
file path is the optional second argument. - There is lighting in the form of an arbitrary number of point lights combined with a direct lighting shader, adapted from the lab work made during the course.