Remove cosine from volume function.
This commit is contained in:
parent
97dbc2db13
commit
fa42ce7dca
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ Vec3fa Application2::renderPixelHomogeneous(float x, float y, const ISPCCamera&
|
||||||
/* add light contribution if not occluded (NEE) */
|
/* add light contribution if not occluded (NEE) */
|
||||||
if (Lwscatter > 0.0) {
|
if (Lwscatter > 0.0) {
|
||||||
// L += Lw * light_diffuse * ls.weight;
|
// 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();
|
// L += Lw * light_diffuse * ls.weight/ data.scene->lights.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue