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

removed phase flips

parent ec978d24
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ color pixel_color(const ray& r, const hittable& world, const std::vector<vec3> s
continue;
}
//rays interfere here
inner_amp += r.get_amplitude() * std::cos(phase_offset + r.optical_path_to(0.) * 2. * pi / wavelengths[i] + r.get_phaseflips() * pi);
inner_amp += r.get_amplitude() * std::cos(phase_offset + r.optical_path_to(0.) * 2. * pi / wavelengths[i]);
}
//colour amplitude is intensity
colour_amplitude += inner_amp * inner_amp;
......
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