Skip to content

Book 3.10.1: camera::ray_color() switches from double pdf to double pdf_val halfway through #988

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

Closed
trevordblack opened this issue Feb 4, 2022 · 4 comments

Comments

@trevordblack
Copy link
Collaborator

Pick one of the above and make it consistent.

@hollasch
Copy link
Collaborator

This is a local variable in camera::ray_color(). Also confusing versus hittable::pdf_value().

@hollasch hollasch assigned hollasch and unassigned trevordblack Apr 19, 2024
@hollasch hollasch changed the title Book 3 scene.h source switches from double pdf to double pdf_val halfway through Book 3.10.1: camera::ray_color() switches from double pdf to double pdf_val halfway through Apr 19, 2024
@hollasch
Copy link
Collaborator

hollasch commented Apr 22, 2024

pdf clashes with the class name. pdf_value clashes with hittable::pdf_value(), though that should be ok as a local name.

@hollasch
Copy link
Collaborator

Ugh. The material classes all use pdf as the PDF value parameter. I think I'll let these slide for now.

hollasch added a commit that referenced this issue Apr 23, 2024
Also includes some minor fixes.

Note that this shows the current state of some buggy renders, which
render the entire scene as black, except for the single square light
source.

Resolves #988
Resolves #1317
hollasch added a commit that referenced this issue Apr 23, 2024
Also includes some minor fixes.

Note that this shows the current state of some buggy renders, which
render the entire scene as black, except for the single square light
source.

Resolves #988
Resolves #1317
@hollasch
Copy link
Collaborator

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants