From fa42ce7dca085583dc547113fe04771b6db507bf Mon Sep 17 00:00:00 2001 From: hal8174 Date: Thu, 6 Jun 2024 10:23:39 +0200 Subject: [PATCH] Remove cosine from volume function. --- Assignments/Assignment2/Application2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assignments/Assignment2/Application2.cpp b/Assignments/Assignment2/Application2.cpp index 1c6e30f..3bf2f2d 100644 --- a/Assignments/Assignment2/Application2.cpp +++ b/Assignments/Assignment2/Application2.cpp @@ -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(); }