diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-01-11 20:23:19 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-01-11 20:23:41 -0300 |
commit | eb16f9939a1ccb1e44d230f7ed2811ea55c25c34 (patch) | |
tree | a95609af027f8877aed344fd2561cfe446327371 | |
parent | c1c17b04bd5090503416cef24b4da9209d5cf563 (diff) |
Removed extra multiplication in baker
-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 e1717a56f3..087b4b382a 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_energy, emission_col * emission_energy); + mc.emission = _get_bake_texture(img_emission, Color(1, 1, 1), emission_col * emission_energy); } else { mc.emission = _get_bake_texture(img_emission, emission_col * emission_energy, Color(0, 0, 0)); } |