~ | Better fps handling

This commit is contained in:
RedShip
2025-02-25 19:03:35 +01:00
committed by tomoron
parent 47c0c38662
commit 0aaf4d0492
6 changed files with 71 additions and 7 deletions

View File

@ -216,7 +216,7 @@ vec3[2] pathtrace(Ray ray, inout uint rng_state)
color /= max(p, 0.001);
GPUMaterial mat = materials[hit.mat_index];
calculateLightColor(mat, hit, color, light, rng_state);
calculateLightColor(mat, hit, color, light, rng_state, ray);
if (mat.emission > 0.0 && mat.emission_texture_index == -1)
break;