fix density inversion
All checks were successful
studiorailgun/Renderer/pipeline/head This commit looks good

This commit is contained in:
austin 2024-12-18 16:21:49 -05:00
parent 4fa843b967
commit abf819e5fd

View File

@ -969,7 +969,7 @@ LIBRARY_API void fluid_pressurecell_recapture_density(Environment * env, Chunk *
for(x = 0; x < DIM; x++){ for(x = 0; x < DIM; x++){
for(y = 0; y < DIM; y++){ for(y = 0; y < DIM; y++){
for(z = 0; z < DIM; z++){ for(z = 0; z < DIM; z++){
dArr[IX(x,y,z)] = dTemp[IX(x,y,z)]; dArr[IX(x,y,z)] = fmax(0.0f,dTemp[IX(x,y,z)]);
} }
} }
} }