Class Material
- Namespace
- TaleWorlds.Engine
- Assembly
- TaleWorlds.Engine.dll
public sealed class Material : Resource
- Inheritance
-
Material
- Inherited Members
Properties
Flags
public MaterialFlags Flags { get; set; }
Property Value
IsDynamicShadowReceiver
public bool IsDynamicShadowReceiver { get; set; }
Property Value
IsSunShadowReceiver
public bool IsSunShadowReceiver { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
UsingDiffuseAlphaMap
public bool UsingDiffuseAlphaMap { get; set; }
Property Value
UsingDynamicLight
public bool UsingDynamicLight { get; set; }
Property Value
UsingEnvironmentMap
public bool UsingEnvironmentMap { get; set; }
Property Value
UsingFresnel
public bool UsingFresnel { get; set; }
Property Value
UsingParallaxMapping
public bool UsingParallaxMapping { get; set; }
Property Value
UsingParallaxOcclusion
public bool UsingParallaxOcclusion { get; set; }
Property Value
UsingSpecular
public bool UsingSpecular { get; set; }
Property Value
UsingSpecularAlpha
public bool UsingSpecularAlpha { get; set; }
Property Value
UsingSpecularMap
public bool UsingSpecularMap { get; set; }
Property Value
UsingSunLight
public bool UsingSunLight { get; set; }
Property Value
Methods
AddMaterialShaderFlag(string, bool)
public void AddMaterialShaderFlag(string flagName, bool showErrors)
Parameters
CreateCopy()
public Material CreateCopy()
Returns
CreateTableauMaterial(TextureUpdateEventHandler, object, Material, int, int, bool)
public static Material CreateTableauMaterial(RenderTargetComponent.TextureUpdateEventHandler eventHandler, object objectRef, Material sampleMaterial, int tableauSizeX, int tableauSizeY, bool continuousTableau = false)
Parameters
eventHandler
RenderTargetComponent.TextureUpdateEventHandlerobjectRef
objectsampleMaterial
MaterialtableauSizeX
inttableauSizeY
intcontinuousTableau
bool
Returns
GetAlphaBlendMode()
public Material.MBAlphaBlendMode GetAlphaBlendMode()
Returns
GetAlphaMaskTableauMaterial()
public static Material GetAlphaMaskTableauMaterial()
Returns
GetAlphaTestValue()
public float GetAlphaTestValue()
Returns
GetDefaultMaterial()
public static Material GetDefaultMaterial()
Returns
GetDefaultTableauSampleMaterial(bool)
public static Material GetDefaultTableauSampleMaterial(bool transparency)
Parameters
transparency
bool
Returns
GetFromResource(string)
public static Material GetFromResource(string materialName)
Parameters
materialName
string
Returns
GetOutlineMaterial(Mesh)
public static Material GetOutlineMaterial(Mesh mesh)
Parameters
mesh
Mesh
Returns
GetShader()
public Shader GetShader()
Returns
GetShaderFlags()
public ulong GetShaderFlags()
Returns
GetTexture(MBTextureType)
public Texture GetTexture(Material.MBTextureType textureType)
Parameters
textureType
Material.MBTextureType
Returns
GetTextureWithSlot(int)
public Texture GetTextureWithSlot(int textureSlot)
Parameters
textureSlot
int
Returns
SetAlphaBlendMode(MBAlphaBlendMode)
public void SetAlphaBlendMode(Material.MBAlphaBlendMode alphaBlendMode)
Parameters
alphaBlendMode
Material.MBAlphaBlendMode
SetAlphaTestValue(float)
public void SetAlphaTestValue(float alphaTestValue)
Parameters
alphaTestValue
float
SetAreaMapScale(float)
public void SetAreaMapScale(float scale)
Parameters
scale
float
SetEnableSkinning(bool)
public void SetEnableSkinning(bool enable)
Parameters
enable
bool
SetMeshVectorArgument(float, float, float, float)
public void SetMeshVectorArgument(float x, float y, float z, float w)
Parameters
SetShader(Shader)
public void SetShader(Shader shader)
Parameters
shader
Shader
SetShaderFlags(ulong)
public void SetShaderFlags(ulong flagEntry)
Parameters
flagEntry
ulong
SetTexture(MBTextureType, Texture)
public void SetTexture(Material.MBTextureType textureType, Texture texture)
Parameters
textureType
Material.MBTextureTypetexture
Texture
SetTextureAtSlot(int, Texture)
public void SetTextureAtSlot(int textureSlot, Texture texture)
Parameters
UsingSkinning()
public bool UsingSkinning()
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).