Fix bug reported in ilias.
This commit is contained in:
parent
b00c67bf3d
commit
50c034afa0
1 changed files with 2 additions and 2 deletions
|
|
@ -51,8 +51,8 @@ inline Vec3fa sample_phase_function(Vec3fa wo, float g, Vec2fa u, float& pdf) {
|
|||
Vec3fa tvec, bvec;
|
||||
build_basis(wo, tvec, bvec);
|
||||
|
||||
float sin_phi = std::sqrt(phi);
|
||||
float cos_phi = std::sqrt(phi);
|
||||
float sin_phi = std::sin(phi);
|
||||
float cos_phi = std::cos(phi);
|
||||
|
||||
Vec3fa inc_light = sin_theta * cos_phi * tvec +
|
||||
sin_theta * sin_phi * bvec +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue