Class StandardMaterialConverter
A MaterialConverter implementation that uses the "Autodesk Interactive" Unity shader to map properties from a ufbx material (e.g., base color, roughness, metalness) onto a new Unity material.
Inherited Members
Namespace: FBXImporter.MaterialConverters
Assembly: FBXImporter.MaterialMappers.dll
Syntax
public class StandardMaterialConverter : MaterialConverter
Methods
Convert(ufbx_material*, Dictionary<IntPtr, Texture2D>)
Converts the given ufbx material (if available) into a new Unity material using the "Autodesk Interactive" shader, setting texture and color properties where applicable.
Declaration
public override Material Convert(ufbx.ufbx_material* material, Dictionary<IntPtr, Texture2D> textures)
Parameters
Type | Name | Description |
---|---|---|
ufbx_material* | material | Pointer to the ufbx material. |
Dictionary<IntPtr, Texture2D> | textures | Maps ufbx textures to Unity Texture2D objects. |
Returns
Type | Description |
---|---|
Material | A Unity material with mapped properties from the ufbx material. |