Fix bug reported in ilias.

This commit is contained in:
hal8174 2024-05-16 08:30:47 +02:00
parent b00c67bf3d
commit 50c034afa0

View file

@ -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 +