A downloadable tool

TriLib Material Mappers Requirements: TriLib 2.3.8 or higher; Shader Graph package

This package provides two specialized Material Mappers for TriLib:

  • glTF2StandardMaterialMapper (Requires Shader Graph package): This Material Mapper creates glTF2 materials when a glTF2 model is loaded. The created material does not require texture conversion and gives the same result on every render pipeline.
  • AutodeskInteractiveStandardMaterialMapper: This Material Mapper creates Autodesk Interactive materials when non-glTF2 models are loaded. The created material does not require texture conversion and gives the same result on every render pipeline.

These Material Mappers are ideal for minimizing loading/processing time and giving consistency across render pipelines.

Download

Download
TriLibMaterialMappers.unitypackage 122 kB

Install instructions

Import the "TriLibMaterialMappers" package.

You must add the "glTF2StandardMaterialMapper" to your "AssetLoaderOptions" instance, to use it. To do that, use the following snippet:

TriLibCore.Utils.GltfMaterialsHelper.SetupStatic(ref assetLoaderOptions); // where assetLoaderOptions is your AssetLoaderOptions instance

The same way, you must add the "AutodeskInteractiveMaterialMapper" to your "AssetLoaderOptions" instance, to use it. To do that, use the following snippet:

TriLibCore.Utils.AutodeskInteractiveMaterialsHelper.SetupStatic(ref assetLoaderOptions); // where assetLoaderOptions is your AssetLoaderOptions instance

Comments

Log in with itch.io to leave a comment.