mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Restored multiplication by texture
This commit is contained in:
parent
eb16f9939a
commit
c48aab2f05
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user