Click or drag to resize
GraphicsManagerSetDefaultMaterialGenerator Method
Set the default material generator for a material type. This is used to determine how to generate materials for loaded models (will apply only on models not loaded yet). For example, if you set the Default material generator function, it means that whenever GeonBit loads a model with BasicEffect, it will call this function to generate a corresponding material for it.

Namespace:  GeonBit.Managers
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void SetDefaultMaterialGenerator(
	MaterialTypes type,
	MaterialGenerator generator
)

Parameters

type
Type: GeonBit.Core.Graphics.MaterialsMaterialTypes
Material type to set.
generator
Type: GeonBit.Core.Graphics.MaterialsMaterialGenerator
Generator function to use on this material.
See Also