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

removed extinction

parent 14548c6b
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,9 @@
ray::ray() {}
ray::ray(const point3& origin, const vec3& direction, double amplitude, double opl, double index_of_refraction, double extinction_coeff, int phase_flips, int max_bounces)
ray::ray(const point3& origin, const vec3& direction, double amplitude, double opl, double index_of_refraction, int phase_flips, int max_bounces)
: orig(origin), dir(direction), amplitude(amplitude), optical_path(opl), refractive_index(index_of_refraction),
extinction_coeff(extinction_coeff), phase_flips(phase_flips), source(0), bounces_left(max_bounces){
phase_flips(phase_flips), source(0), bounces_left(max_bounces){
}
......@@ -46,7 +46,3 @@ int ray::get_source() const{
double ray::get_amplitude() const{
return amplitude;
}
double ray::get_amplitude_at(double t) const{
return amplitude*std::exp(-12600.*extinction_coeff*(at(t) - orig).length());
}
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