Fix regression on Large Worlds build and bunch of warnings

This commit is contained in:
Wojtek Figat
2026-03-30 23:50:03 +02:00
parent 7b695bf6bf
commit 8b383d4dbe
7 changed files with 8 additions and 6 deletions

View File

@@ -443,7 +443,7 @@ bool ModelTool::GenerateModelSDF(Model* inputModel, const ModelData* modelData,
minDistance *= -1; // Voxel is inside the geometry so turn it into negative distance to the surface
const int32 xAddress = x + yAddress;
formatWrite(voxels.Get() + xAddress * formatStride, minDistance * encodeMAD.X + encodeMAD.Y);
formatWrite(voxels.Get() + xAddress * formatStride, (float)minDistance * encodeMAD.X + encodeMAD.Y);
}
}
};