summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-01-11 20:47:04 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-01-11 20:47:04 -0300
commitc48aab2f05d931fbab6bf0702e81e45b5cd88aa1 (patch)
tree1755dec6f4a1f97872a288b238d60ac1869908a2
parenteb16f9939a1ccb1e44d230f7ed2811ea55c25c34 (diff)
Restored multiplication by texture
-rw-r--r--scene/3d/voxel_light_baker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/voxel_light_baker.cpp b/scene/3d/voxel_light_baker.cpp
index 087b4b382a..e1717a56f3 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));
}