Skip to content

Fix refs to random_in_hemisphere #1207

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

Merged
merged 1 commit into from
Aug 13, 2023
Merged

Fix refs to random_in_hemisphere #1207

merged 1 commit into from
Aug 13, 2023

Conversation

hollasch
Copy link
Collaborator

These should be random_on_hemisphere.

Resolves #1198

These should be random_on_hemisphere.

Resolves #1198
@hollasch hollasch added this to the v4.0.0 milestone Aug 12, 2023
@hollasch hollasch requested a review from trevordblack August 12, 2023 18:00
@hollasch hollasch self-assigned this Aug 12, 2023
@@ -1819,7 +1819,7 @@
bool scatter(const ray& r_in, const hit_record& rec, color& attenuation, ray& scattered)
const override {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
auto scatter_direction = random_in_hemisphere(rec.normal);
auto scatter_direction = random_on_hemisphere(rec.normal);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think that on is really what we want. If we really do want on, then we'll need to implement it. Also note that this code is quickly replaced later in the text.

@hollasch hollasch added the Review Post-merge PRs to be reviewed label Aug 13, 2023
@hollasch hollasch merged commit bcb99f5 into dev Aug 13, 2023
@hollasch hollasch deleted the fix/random_in_hemisphere branch August 13, 2023 17:26
@hollasch hollasch removed the Review Post-merge PRs to be reviewed label Jul 26, 2024
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.

random_in/on_hemisphere
1 participant