Comment about lambert shading
This commit is contained in:
parent
daeb052003
commit
d5f640871c
1 changed files with 3 additions and 0 deletions
|
@ -256,6 +256,9 @@ Scene::trace_ray(const Ray &ray,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Compute basic Lambert diffuse shading for this object.
|
||||||
|
*/
|
||||||
out_color += shape_color * ( ambient_level * ambient->compute_color_contribution()
|
out_color += shape_color * ( ambient_level * ambient->compute_color_contribution()
|
||||||
+ diffuse_level * ldotn);
|
+ diffuse_level * ldotn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue