We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
In listing 56, the if statement in the highlighted green "new" code has a stray bracket
if
double cos_theta = fmin(dot(-unit_direction, rec.normal), 1.0); double sin_theta = sqrt(1.0 - cos_theta*cos_theta); bool cannot_refract = refraction_ratio * sin_theta > 1.0; vec3 direction; if (cannot_refract) { // Right here direction = reflect(unit_direction, rec.normal); else direction = refract(unit_direction, rec.normal, refraction_ratio); scattered = ray(rec.p, direction);
The text was updated successfully, but these errors were encountered:
Fix listing 58 syntax error
7f3f794
Caption: Dielectric material class with reflection Resolves #768
Thanks!
Sorry, something went wrong.
hollasch
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
In listing 56, the
if
statement in the highlighted green "new" code has a stray bracketThe text was updated successfully, but these errors were encountered: