-
Notifications
You must be signed in to change notification settings - Fork 918
Tmin tmax #678
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
Conversation
Checker texture was yet another construct using t0 and t1 to have its own unique meaning. Renaming constructor parameters to be more clear.
A bit more clear.
- Time parameters moved to the end, so it's a more incremental change from the original sphere constructor. - Renamed the constructor time parameters from t0, t1 to time_start, time_end for clarity.
Using ray_tmin and ray_tmax for hit parameters.
WAIT. Why doesn't RestOfYourLife have moving_sphere???? That feels like a deliberate choice on our part, was it? |
double time_start, double time_end) | ||
: | ||
center0(ctr0), center1(ctr1), radius(r), mat_ptr(m), | ||
time0(time_start), time1(time_end) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See earlier comments re moving_sphere member variables (time_start
and time_end
param names may be a bad idea)
This PR is absolutely filled with great changes, but see inline |
src/TheRestOfYourLife/moving_sphere.h was removed in ac5409b, since it is unused. |
Move camera variables above the scene switch statement, to allow them to also be scene-specific if the user chooses.
- time0 to time_start - time1 to time_end
Looks good to me. |
Resolves #418