Currently, we have the Phong Reflection Model implemented in our codebase.
The Lambertian model for reflection/shading is an alternative model which has a distribution of $\cos(\phi)$.
This can be achieved by:
- Implementing a function that returns a random point in a unit sphere.
- Offsetting the surface normal with these unit vectors.
Currently, we have the Phong Reflection Model implemented in our codebase.$\cos(\phi)$ .
The Lambertian model for reflection/shading is an alternative model which has a distribution of
This can be achieved by: