mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | New window2 scene + better light direct sampling, to tweak and see
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user