mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix light values on blend import when using non-physical light units
This commit is contained in:
@@ -146,6 +146,7 @@ Node *EditorSceneFormatImporterBlend::import_scene(const String &p_path, uint32_
|
||||
parameters_map["export_keep_originals"] = unpack_original_images;
|
||||
parameters_map["export_format"] = "GLTF_SEPARATE";
|
||||
parameters_map["export_yup"] = true;
|
||||
parameters_map["export_import_convert_lighting_mode"] = "COMPAT";
|
||||
|
||||
if (p_options.has(SNAME("blender/nodes/custom_properties")) && p_options[SNAME("blender/nodes/custom_properties")]) {
|
||||
parameters_map["export_extras"] = true;
|
||||
|
||||
@@ -182,6 +182,7 @@ Light3D *GLTFLight::to_node() const {
|
||||
return nullptr;
|
||||
}
|
||||
light->set_color(color.linear_to_srgb());
|
||||
light->set_param(Light3D::PARAM_ATTENUATION, 2.0);
|
||||
return light;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user