~ | Small RR correction

This commit is contained in:
TheRedShip
2025-01-11 00:42:07 +01:00
parent a46404d91d
commit b19b50c60b

View File

@ -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;
// //