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

Updates from book 3 complete progression #1545

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Updates from book 3 complete progression #1545

merged 2 commits into from
Apr 23, 2024

Conversation

hollasch
Copy link
Collaborator

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

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 hollasch added this to the v4.0.0 milestone Apr 23, 2024
@hollasch hollasch requested a review from a team April 23, 2024 04:08
@hollasch hollasch self-assigned this Apr 23, 2024
Comment on lines 3 to 12
//==============================================================================================
// Originally written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related and
// neighboring rights to this software to the public domain worldwide. This software is
// distributed without any warranty.
//
// You should have received a copy (see file COPYING.txt) of the CC0 Public Domain Dedication
// along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
//==============================================================================================
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in next commit.

bool scatter(
const ray& r_in, const hit_record& rec, color& attenuation, ray& scattered, double& pdf
) const override {
double pdf_value; // TODO: What are we supposed to do with the returned PDF?
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this TODO for the reader?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, things are bad enough at this point that I wanted to make sure all instances of this problematic code are flagged, so we don't miss a copy before shipping. It's also why I've updated images with obviously bad renders.

Copy link
Contributor

@rupsis rupsis left a comment

Choose a reason for hiding this comment

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

Slowly getting better!

@hollasch hollasch merged commit 387baf8 into dev Apr 23, 2024
@hollasch hollasch deleted the progression3-updates branch April 23, 2024 18:03
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.

None yet

2 participants