You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Rename Texture.get_data() to get_image()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user