mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 10:32:54 -05:00
Merge pull request #101631 from Syntaxxor/voxel-gi-shadow-fix
Ensure Voxelizer SDF generation uses the correct cell level
This commit is contained in:
commit
a0633ff581
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue