diff options
| author | Juan Linietsky | 2017-12-19 12:57:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-12-19 12:57:46 -0300 |
| commit | a714e1a4c77dc8236d7dfa6628ba40ddc534d1a4 (patch) | |
| tree | d1466e91b22b60d48da8bed74fb2bf10d329134b /scene/3d/voxel_light_baker.cpp | |
| parent | 8b01b2e85cb7ed60209c925f1e123374272bd8c8 (diff) | |
| download | godot-a714e1a4c77dc8236d7dfa6628ba40ddc534d1a4.tar.gz godot-a714e1a4c77dc8236d7dfa6628ba40ddc534d1a4.tar.zst godot-a714e1a4c77dc8236d7dfa6628ba40ddc534d1a4.zip | |
Fixed bug where all file dialogs requested thumbnails even if hidden.
Diffstat (limited to '')
| -rw-r--r-- | scene/3d/voxel_light_baker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/3d/voxel_light_baker.cpp b/scene/3d/voxel_light_baker.cpp index 96ac5e8a0..b2a487eb1 100644 --- a/scene/3d/voxel_light_baker.cpp +++ b/scene/3d/voxel_light_baker.cpp @@ -1709,6 +1709,9 @@ Vector3 VoxelLightBaker::_compute_ray_trace_at_pos(const Vector3 &p_pos, const V accum.y += light[cell].accum[i][1] * amount; accum.z += light[cell].accum[i][2] * amount; } + accum.x += cells[cell].emission[0]; + accum.y += cells[cell].emission[1]; + accum.z += cells[cell].emission[2]; } } |
