mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
~ | Small RR correction
This commit is contained in:
@ -157,7 +157,7 @@ vec3 pathtrace(Ray ray, inout uint rng_state)
|
|||||||
|
|
||||||
// RR
|
// RR
|
||||||
float p = max(color.r, max(color.g, color.b));
|
float p = max(color.r, max(color.g, color.b));
|
||||||
if (i > 1 && randomValue(rng_state) > p)
|
if (randomValue(rng_state) > p)
|
||||||
break;
|
break;
|
||||||
color /= p;
|
color /= p;
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user