Skip to content
Snippets Groups Projects
Commit d78af1c6 authored by Pascal Engeler's avatar Pascal Engeler
Browse files

removed extinction

parent f2ebd744
No related branches found
No related tags found
No related merge requests found
...@@ -67,8 +67,8 @@ bool dielectric::scatter( ...@@ -67,8 +67,8 @@ bool dielectric::scatter(
ray(rec.p, dir_reflected, fraction_reflected * r_in.get_amplitude_at(rec.t), optical_path_to_p, ir_in, extinct_in, phase_flips, bounces_left - 1); ray(rec.p, dir_reflected, fraction_reflected * r_in.get_amplitude_at(rec.t), optical_path_to_p, ir_in, extinct_in, phase_flips, bounces_left - 1);
*/ */
//Phase flips are absorbed by the reflection amplitude //Phase flips are absorbed by the reflection amplitude
r_reflected = ray(rec.p, dir_reflected, fraction_reflected * r_in.get_amplitude_at(rec.t), optical_path_to_p, ir_in, phase_flips, bounces_left - 1); r_reflected = ray(rec.p, dir_reflected, fraction_reflected * r_in.get_amplitude(), optical_path_to_p, ir_in, phase_flips, bounces_left - 1);
r_refracted = ray(rec.p, dir_refracted, fraction_refracted * r_in.get_amplitude_at(rec.t), optical_path_to_p, ir_out, phase_flips, bounces_left - 1); r_refracted = ray(rec.p, dir_refracted, fraction_refracted * r_in.get_amplitude(), optical_path_to_p, ir_out, phase_flips, bounces_left - 1);
#ifndef NDEBUG #ifndef NDEBUG
//if(fraction_reflected > 1.){ //if(fraction_reflected > 1.){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment