mirror of
https://github.com/godotengine/godot-blender-exporter.git
synced 2026-01-04 14:09:56 +03:00
* Attempt basic spatial material conversion. This improves our attempt at converting several material types (Principled, Diffuse, and Emission) to SpatialMaterials. It still leaves a lot to be desired, but implements more than our current approach. What works: - Principled albedo, metallic, roughness, anisotropy, emission, and clearcoat. Principled does not have emission strength, so we just assume 1. - Emission strength and color - Diffuse color and roughness. Fixes #332. * Add alpha support for spatial materials. Everywhere we currently export a color we use mathutils.Color, which doesn't support alpha. This adds an RGBA type we can use to export colors with alpha. Maybe we could use this in other places, but I'm not sure the implications right now. * Null-check NodeTree in SpatialMaterial export * Add config.json for spatial export test. * Update tests for spatial material export.