~ | Sorry for leaving an issue known from 1 week

This commit is contained in:
TheRedShip
2025-03-03 15:36:40 +01:00
committed by tomoron
parent 952be35cba
commit 775eb478f2

View File

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