Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Materials #17

Merged
merged 35 commits into from
May 26, 2021
Merged

Implement Materials #17

merged 35 commits into from
May 26, 2021

Conversation

Samuele-Colombo
Copy link
Collaborator

@Samuele-Colombo Samuele-Colombo commented May 21, 2021

Implement flat material rendering of shapes.
The following are needed:

  • Pigment abstract type
    • UniformPigment for solid color
    • CheckeredPigment for checkered pattern between two colors
    • (optional) ImagePigment maps a image onto the shape
  • BRDF abstract type wrapping a BRDF function
    • DiffuseBRDF type representing diffusion on a coloured surface
  • Material a combination of a BRDF and an emitted radiance pigment
  • modify Shape so that it contains a Material
  • modify HitRecord so that it remembers the shape or material it had hit
  • implement a flat renderer and include it as an option for the demo

Copy link
Owner

@Paolo97Gll Paolo97Gll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Co-authored-by: Paolo Galli <Paolo97Gll@users.noreply.github.com>
@Samuele-Colombo Samuele-Colombo merged commit c6331d6 into master May 26, 2021
@Paolo97Gll Paolo97Gll deleted the implement_materials branch May 26, 2021 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants