Rename Texture.get_data() to get_image()
This commit is contained in:
parent
f8442b97bf
commit
fd30c36985
31 changed files with 99 additions and 98 deletions
|
|
@ -344,7 +344,7 @@ Voxelizer::MaterialCache Voxelizer::_get_material_cache(Ref<Material> p_material
|
|||
|
||||
Ref<Image> img_albedo;
|
||||
if (albedo_tex.is_valid()) {
|
||||
img_albedo = albedo_tex->get_data();
|
||||
img_albedo = albedo_tex->get_image();
|
||||
mc.albedo = _get_bake_texture(img_albedo, mat->get_albedo(), Color(0, 0, 0)); // albedo texture, color is multiplicative
|
||||
} else {
|
||||
mc.albedo = _get_bake_texture(img_albedo, Color(1, 1, 1), mat->get_albedo()); // no albedo texture, color is additive
|
||||
|
|
@ -358,7 +358,7 @@ Voxelizer::MaterialCache Voxelizer::_get_material_cache(Ref<Material> p_material
|
|||
Ref<Image> img_emission;
|
||||
|
||||
if (emission_tex.is_valid()) {
|
||||
img_emission = emission_tex->get_data();
|
||||
img_emission = emission_tex->get_image();
|
||||
}
|
||||
|
||||
if (mat->get_emission_operator() == StandardMaterial3D::EMISSION_OP_ADD) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue