提交 7c59035d 编写于 作者: M Matt Pharr

Update from book source. No meaningful changes to functionality.

上级 30822f66
......@@ -100,7 +100,7 @@ class HomogeneousMedium {
template <typename F>
PBRT_CPU_GPU void SampleTmaj(Ray ray, Float tMax, RNG &rng,
const SampledWavelengths &lambda, F callback) const {
// Compute normalized ray in medium, _rayp_
// Normalize ray direction for homogeneous medium sampling
tMax *= Length(ray.d);
ray.d = Normalize(ray.d);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册