Skip to content

Implementing a Lambertian material class #22

Description

@divyanshtiwari237

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:

  1. Implementing a function that returns a random point in a unit sphere.
  2. Offsetting the surface normal with these unit vectors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions