Class AutodeskInteractiveMaterialsHelper
Provides helper methods to configure an AssetLoaderOptions instance with the AutodeskInteractiveStandardMaterialMapper, ensuring correct interpretation and rendering of Autodesk Interactive materials.
Inherited Members
Namespace: TriLibCore.Utils
Assembly: Assembly-CSharp.dll
Syntax
[CreateAssetMenu(menuName = "TriLib/MaterialsHelper/Autodesk Interactive Materials Helper", fileName = "AutodeskInteractiveMaterialsHelper")]
public class AutodeskInteractiveMaterialsHelper : MaterialsHelper
Methods
Setup(ref AssetLoaderOptions)
Configures the specified assetLoaderOptions
to use
the AutodeskInteractiveStandardMaterialMapper, adding it to the list
of MaterialMapper instances. This method also adjusts certain
properties of AssetLoaderOptions to better handle
Autodesk Interactive material data (e.g., allowing displacement textures).
Declaration
public override void Setup(ref AssetLoaderOptions assetLoaderOptions)
Parameters
Type | Name | Description |
---|---|---|
AssetLoaderOptions | assetLoaderOptions | A reference to the AssetLoaderOptions object being configured.
If |
Overrides
SetupStatic(ref AssetLoaderOptions)
A static convenience method to create a temporary instance of
AutodeskInteractiveMaterialsHelper and call
Setup(ref AssetLoaderOptions) on the provided
assetLoaderOptions
.
Declaration
public static void SetupStatic(ref AssetLoaderOptions assetLoaderOptions)
Parameters
Type | Name | Description |
---|---|---|
AssetLoaderOptions | assetLoaderOptions | A reference to an existing AssetLoaderOptions. If |