Lightweight FBX Importer
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    MaterialConverter
    StandardMaterialConverter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Overrides
    MaterialConverter.Convert(ufbx.ufbx_material*, Dictionary<IntPtr, Texture2D>)
    In this article
    Back to top Generated by DocFX