Class GenericMaterialCore
- Namespace
- HelixToolkit.SharpDX.Model
- Assembly
- HelixToolkit.SharpDX.dll
[DataContract]
public abstract class GenericMaterialCore : MaterialCore, IMaterial, INotifyPropertyChanged
- Inheritance
-
GenericMaterialCore
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
GenericMaterialCore(ConstantBufferDescription?)
public GenericMaterialCore(ConstantBufferDescription? constantBufferDesc)
Parameters
constantBufferDescConstantBufferDescription
GenericMaterialCore(ShaderPass, string)
Initializes a new instance of the GenericMaterialCore class.
public GenericMaterialCore(ShaderPass shaderPass, string modelMaterialConstantBufferName)
Parameters
shaderPassShaderPassThe shader pass. Currently only supports pixel shader parameter properties
modelMaterialConstantBufferNamestringName of the model material constant buffer in pixel shader.
GenericMaterialCore(string, string, string, ConstantBufferDescription?)
public GenericMaterialCore(string materialShaderPassName, string shadowShaderPassName, string wireframePassName, ConstantBufferDescription? constantBufferDesc)
Parameters
materialShaderPassNamestringshadowShaderPassNamestringwireframePassNamestringconstantBufferDescConstantBufferDescription
Fields
cbDescription
protected readonly ConstantBufferDescription? cbDescription
Field Value
Properties
BoolDict
[DataMember]
public Dictionary<string, bool> BoolDict { get; }
Property Value
FloatDict
[DataMember]
public Dictionary<string, float> FloatDict { get; }
Property Value
MaterialPassName
[DataMember]
public string MaterialPassName { get; set; }
Property Value
MatrixDict
[DataMember]
public Dictionary<string, Matrix4x4> MatrixDict { get; }
Property Value
PropertieNames
public string[] PropertieNames { get; }
Property Value
- string[]
SamplerDict
[DataMember]
public Dictionary<string, SamplerStateDescription> SamplerDict { get; }
Property Value
- Dictionary<string, SamplerStateDescription>
SamplerNames
public string[] SamplerNames { get; }
Property Value
- string[]
ShadowPassName
[DataMember]
public string ShadowPassName { get; set; }
Property Value
TextureDict
[DataMember]
public Dictionary<string, TextureModel?> TextureDict { get; }
Property Value
TextureNames
public string[] TextureNames { get; }
Property Value
- string[]
Vector2Dict
[DataMember]
public Dictionary<string, Vector2> Vector2Dict { get; }
Property Value
Vector3Dict
[DataMember]
public Dictionary<string, Vector3> Vector3Dict { get; }
Property Value
Vector4Dict
[DataMember]
public Dictionary<string, Vector4> Vector4Dict { get; }
Property Value
WireframePassName
[DataMember]
public string WireframePassName { get; set; }
Property Value
Methods
GetSampler(string)
public SamplerStateDescription GetSampler(string name)
Parameters
namestring
Returns
- SamplerStateDescription
GetTexture(string)
public TextureModel? GetTexture(string name)
Parameters
namestring
Returns
SetProperty(string, bool)
public void SetProperty(string name, bool value)
Parameters
SetProperty(string, int)
public void SetProperty(string name, int value)
Parameters
SetProperty(string, Matrix4x4)
public void SetProperty(string name, Matrix4x4 value)
Parameters
SetProperty(string, Vector2)
public void SetProperty(string name, Vector2 value)
Parameters
SetProperty(string, Vector3)
public void SetProperty(string name, Vector3 value)
Parameters
SetProperty(string, Vector4)
public void SetProperty(string name, Vector4 value)
Parameters
SetProperty(string, float)
public void SetProperty(string name, float value)
Parameters
SetSampler(string, SamplerStateDescription)
public void SetSampler(string name, SamplerStateDescription samplerDesc)
Parameters
namestringsamplerDescSamplerStateDescription
SetTexture(string, Stream)
public void SetTexture(string name, Stream texture)