C# Class ColladaXna.Base.Materials.EffectMaterial

Run-time equivalent of a material which was converted to an effect instance.
Show file Open project: Bunkerbewohner/ColladaXna

Protected Properties

Property Type Description
hasNormalMap bool

Public Methods

Method Description
CreateDefaultMaterial ( MeshPart meshPart, GraphicsDevice graphicsDevice ) : EffectMaterial

Creates a default material fitting the given model mesh part

EffectMaterial ( String name, Effect effect, Object>.Dictionary effectParameters, Material materialDefinition ) : System

Protected Methods

Method Description
UpdateEffectParameter ( string semantic ) : void

Method Details

CreateDefaultMaterial() public static method

Creates a default material fitting the given model mesh part
public static CreateDefaultMaterial ( MeshPart meshPart, GraphicsDevice graphicsDevice ) : EffectMaterial
meshPart MeshPart
graphicsDevice GraphicsDevice
return EffectMaterial

EffectMaterial() public method

public EffectMaterial ( String name, Effect effect, Object>.Dictionary effectParameters, Material materialDefinition ) : System
name String
effect Microsoft.Xna.Framework.Graphics.Effect
effectParameters Object>.Dictionary
materialDefinition Material
return System

UpdateEffectParameter() protected method

protected UpdateEffectParameter ( string semantic ) : void
semantic string
return void

Property Details

hasNormalMap protected property

protected bool hasNormalMap
return bool