mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Merge pull request #108356 from neonmoe/fix-incorrect-light-values-for-blender-imports
Fix incorrect light values on blend import
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_keep_originals"] = unpack_original_images;
|
||||||
parameters_map["export_format"] = "GLTF_SEPARATE";
|
parameters_map["export_format"] = "GLTF_SEPARATE";
|
||||||
parameters_map["export_yup"] = true;
|
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")]) {
|
if (p_options.has(SNAME("blender/nodes/custom_properties")) && p_options[SNAME("blender/nodes/custom_properties")]) {
|
||||||
parameters_map["export_extras"] = true;
|
parameters_map["export_extras"] = true;
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ Light3D *GLTFLight::to_node() const {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
light->set_color(color.linear_to_srgb());
|
light->set_color(color.linear_to_srgb());
|
||||||
|
light->set_param(Light3D::PARAM_ATTENUATION, 2.0);
|
||||||
return light;
|
return light;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user