You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Fix FBX emission_texture copy-paste issue
This commit is contained in:
@@ -1236,7 +1236,7 @@ Error FBXDocument::_parse_materials(Ref<FBXState> p_state) {
|
||||
material->set_emission_energy_multiplier(float(fbx_material->pbr.emission_factor.value_real));
|
||||
}
|
||||
|
||||
const ufbx_texture *emission_texture = _get_file_texture(fbx_material->pbr.ambient_occlusion.texture);
|
||||
const ufbx_texture *emission_texture = _get_file_texture(fbx_material->pbr.emission_color.texture);
|
||||
if (emission_texture) {
|
||||
material->set_texture(BaseMaterial3D::TEXTURE_EMISSION, _get_texture(p_state, GLTFTextureIndex(emission_texture->file_index), TEXTURE_TYPE_GENERIC));
|
||||
material->set_feature(BaseMaterial3D::FEATURE_EMISSION, true);
|
||||
|
||||
Reference in New Issue
Block a user