+ | New window2 scene + better light direct sampling, to tweak and see

This commit is contained in:
TheRedShip
2025-01-15 12:18:21 +01:00
parent 2899055b51
commit 8048d0b799
6 changed files with 113 additions and 11 deletions

View File

@ -192,7 +192,7 @@ vec3 pathtrace(Ray ray, inout uint rng_state)
color /= p;
//
calculateLightColor(color, light, mat, hit);
calculateLightColor(mat, hit, color, light, rng_state);
if (mat.emission > 0.0)
break;