Merge pull request #101631 from Syntaxxor/voxel-gi-shadow-fix

Ensure Voxelizer SDF generation uses the correct cell level
This commit is contained in:
Thaddeus Crews 2025-01-20 10:05:28 -06:00
commit a0633ff581
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -871,7 +871,7 @@ Voxelizer::BakeResult Voxelizer::get_sdf_3d_image(Vector<uint8_t> &r_image, Bake
uint32_t cell_count = bake_cells.size();
for (uint32_t i = 0; i < cell_count; i++) {
if (cells[i].level < (cell_subdiv - 1)) {
if (cells[i].level < cell_subdiv) {
continue; //do not care about this level
}