C# Class Fusion.Engine.Graphics.BaseIllum

Base material with color texture, surface texture, normal map and emission texture. Material has dirt texture and optional detail map. Emission OR detail map could be modulated by color texture alpha.
ファイルを表示 Open project: demiurghg/FusionEngine Class Usage Examples

Private Properties

Property Type Description
CreateMaterialInstance MaterialInstance

Public Methods

Method Description
BaseIllum ( ) : System

Constructor

ExportToXml ( BaseIllum material ) : string

Exports material to xml

GetDependencies ( ) : IEnumerable

Gets all textures and shaders on which this material depends.

ImportFromXml ( string xmlString ) : BaseIllum

Imports material from xml.

Protected Methods

Method Description
GetMaterialData ( MaterialData &data ) : void

Updates MaterialData.

GetSurfaceFlags ( ) : SurfaceFlags
GetTextureBindings ( ) : Fusion.Engine.Graphics.TextureMapBind[]

Private Methods

Method Description
CreateMaterialInstance ( RenderSystem rs, ContentManager content ) : MaterialInstance

Creates gpu material

Method Details

BaseIllum() public method

Constructor
public BaseIllum ( ) : System
return System

ExportToXml() public static method

Exports material to xml
public static ExportToXml ( BaseIllum material ) : string
material BaseIllum
return string

GetDependencies() public method

Gets all textures and shaders on which this material depends.
public GetDependencies ( ) : IEnumerable
return IEnumerable

GetMaterialData() protected method

Updates MaterialData.
protected GetMaterialData ( MaterialData &data ) : void
data MaterialData
return void

GetSurfaceFlags() protected method

protected GetSurfaceFlags ( ) : SurfaceFlags
return SurfaceFlags

GetTextureBindings() protected method

protected GetTextureBindings ( ) : Fusion.Engine.Graphics.TextureMapBind[]
return Fusion.Engine.Graphics.TextureMapBind[]

ImportFromXml() public static method

Imports material from xml.
public static ImportFromXml ( string xmlString ) : BaseIllum
xmlString string
return BaseIllum