warrenm / GLTFKit2

A glTF 2.0 asset loader and exporter for Objective-C and Swift.
MIT License
150 stars 26 forks source link

Add support for anisotropy in RealityKit converter #57

Open warrenm opened 2 months ago

warrenm commented 2 months ago

Thanks to the KHR_materials_anisotropy extension and cgltf v1.14, we have first-class support for anisotropy in the GLTFAsset API, but this isn't yet wired up in RealityKit material import.

The task is to figure out how to map the extension's anisotropy_strength and anisotropy_rotation properties (and texture) onto RealityKit's PhysicallyBasedMaterial.AnisotropyLevel and PhysicallyBasedMaterial.AnisotropyAngle and implement the feature in the RealityKit converter.