diff options
| author | Juan Linietsky | 2018-01-11 20:47:04 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2018-01-11 20:47:04 -0300 |
| commit | c48aab2f05d931fbab6bf0702e81e45b5cd88aa1 (patch) | |
| tree | 1755dec6f4a1f97872a288b238d60ac1869908a2 /scene/3d/voxel_light_baker.cpp | |
| parent | eb16f9939a1ccb1e44d230f7ed2811ea55c25c34 (diff) | |
| download | godot-c48aab2f05d931fbab6bf0702e81e45b5cd88aa1.tar.gz godot-c48aab2f05d931fbab6bf0702e81e45b5cd88aa1.tar.zst godot-c48aab2f05d931fbab6bf0702e81e45b5cd88aa1.zip | |
Diffstat (limited to 'scene/3d/voxel_light_baker.cpp')
| -rw-r--r-- | scene/3d/voxel_light_baker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/voxel_light_baker.cpp b/scene/3d/voxel_light_baker.cpp index 087b4b382..e1717a56f 100644 --- a/scene/3d/voxel_light_baker.cpp +++ b/scene/3d/voxel_light_baker.cpp @@ -554,7 +554,7 @@ VoxelLightBaker::MaterialCache VoxelLightBaker::_get_material_cache(Ref<Material } if (mat->get_emission_operator() == SpatialMaterial::EMISSION_OP_ADD) { - mc.emission = _get_bake_texture(img_emission, Color(1, 1, 1), emission_col * emission_energy); + mc.emission = _get_bake_texture(img_emission, Color(1, 1, 1) * emission_energy, emission_col * emission_energy); } else { mc.emission = _get_bake_texture(img_emission, emission_col * emission_energy, Color(0, 0, 0)); } |
