Class MaterialInfoPart
This class represent a material info asset part.
Inherited Members
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public class MaterialInfoPart : AssetPart
  Fields
ActiveDirectives
The active material directives.
Declaration
public string[] ActiveDirectives
  Field Value
| Type | Description | 
|---|---|
| string[] | 
AllowInstancing
Gets or sets a value indicating whether this material allows instancing.
Declaration
public bool AllowInstancing
  Field Value
| Type | Description | 
|---|---|
| bool | 
EffectID
The effect Id.
Declaration
public Guid EffectID
  Field Value
| Type | Description | 
|---|---|
| Guid | 
Layer
The layer If.
Declaration
public Guid Layer
  Field Value
| Type | Description | 
|---|---|
| Guid | 
OrderBias
This value is used to modify the rendering order of the meshes.
Declaration
public int OrderBias
  Field Value
| Type | Description | 
|---|---|
| int | 
Parameters
The material parameters.
Declaration
public MaterialParameter[] Parameters
  Field Value
| Type | Description | 
|---|---|
| MaterialParameter[] | 
Samplers
The sampler links.
Declaration
public SamplerLink[] Samplers
  Field Value
| Type | Description | 
|---|---|
| SamplerLink[] | 
Textures
The texture links.
Declaration
public TextureLink[] Textures
  Field Value
| Type | Description | 
|---|---|
| TextureLink[] | 
Methods
FromMaterial(Material)
Creates a new Material Info part from a material.
Declaration
public static MaterialInfoPart FromMaterial(Material material)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Material | material | The material.  | 
      
Returns
| Type | Description | 
|---|---|
| MaterialInfoPart | The material info part.  | 
      
Read(BinaryReader)
Read this asset part.
Declaration
public static MaterialInfoPart Read(BinaryReader reader)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BinaryReader | reader | The binary reader.  | 
      
Returns
| Type | Description | 
|---|---|
| MaterialInfoPart | The loaded asset part.  | 
      
Write(BinaryWriter)
Writes the sub asset.
Declaration
public override void Write(BinaryWriter writer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BinaryWriter | writer | The stream.  |