MaterialMappingInterface Class Reference

#include <materialmapping.h>

Inheritance diagram for MaterialMappingInterface:

Public Member Functions

MAXON_METHOD Result< HashSet< Id > > PassOne (const DataDictionary &sourceParameters)
 
MAXON_METHOD Result< MaterialExchangeDataPassTwo (const HashMap< Id, Data > &sourceTextures)
 

Private Member Functions

 MAXON_INTERFACE (MaterialMappingInterface, MAXON_REFERENCE_NORMAL, "net.maxon.material.interface.materialmapping")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( MaterialMappingInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.material.interface.materialmapping"   
)
private

◆ PassOne()

MAXON_METHOD Result<HashSet<Id> > PassOne ( const DataDictionary &  sourceParameters)

The first stage provides the constant-valued parameters of a material, omitting the provision of textures. The returned collection of source parameters defines which textures can be handled in the second stage.

Note that time-taking baking processes may take place between the two stages.

Parameters
[in]sourceParametersThe constant-valued source parameters.
Returns
The parameters of further interest.

◆ PassTwo()

MAXON_METHOD Result<MaterialExchangeData> PassTwo ( const HashMap< Id, Data > &  sourceTextures)

The second stage provides the textures of non-constant parameters that have been marked of further interest by returning their Ids in the first stage.

This stage is expected to provide the complete target material data. Note that time-taking baking processes may take place between the two stages.

Parameters
[in]sourceTexturesThe textures of the source material (texture buffers, image references, substance references).
Returns
The target material data.