Remove cosine from volume function.

This commit is contained in:
hal8174 2024-06-06 10:23:39 +02:00
parent 97dbc2db13
commit fa42ce7dca

View file

@ -377,7 +377,7 @@ Vec3fa Application2::renderPixelHomogeneous(float x, float y, const ISPCCamera&
/* add light contribution if not occluded (NEE) */
if (Lwscatter > 0.0) {
// L += Lw * light_diffuse * ls.weight;
L += Lw * Lwscatter * scatter * (1.0 - absorbtion) * ls.weight * dot(sample.Ng, ls.dir) / data.scene->lights.size();
L += Lw * Lwscatter * scatter * (1.0 - absorbtion) * ls.weight / data.scene->lights.size();
// L += Lw * light_diffuse * ls.weight/ data.scene->lights.size();
}