+ | first fog laser bounce

This commit is contained in:
TheRedShip
2025-03-04 20:43:06 +01:00
parent 74a23e9933
commit a890cca50b
5 changed files with 47 additions and 9 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, ray);
calculateLightColor(mat, hit, color, light, rng_state);
if (mat.emission > 0.0 && mat.emission_texture_index == -1)
break;