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
eventHandlerRenderTargetComponent.TextureUpdateEventHandlerobjectRefobjectsampleMaterialMaterialtableauSizeXinttableauSizeYintcontinuousTableaubool
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
transparencybool
Returns
GetFromResource(string)
public static Material GetFromResource(string materialName)
Parameters
materialNamestring
Returns
GetOutlineMaterial(Mesh)
public static Material GetOutlineMaterial(Mesh mesh)
Parameters
meshMesh
Returns
GetShader()
public Shader GetShader()
Returns
GetShaderFlags()
public ulong GetShaderFlags()
Returns
GetTexture(MBTextureType)
public Texture GetTexture(Material.MBTextureType textureType)
Parameters
textureTypeMaterial.MBTextureType
Returns
GetTextureWithSlot(int)
public Texture GetTextureWithSlot(int textureSlot)
Parameters
textureSlotint
Returns
SetAlphaBlendMode(MBAlphaBlendMode)
public void SetAlphaBlendMode(Material.MBAlphaBlendMode alphaBlendMode)
Parameters
alphaBlendModeMaterial.MBAlphaBlendMode
SetAlphaTestValue(float)
public void SetAlphaTestValue(float alphaTestValue)
Parameters
alphaTestValuefloat
SetAreaMapScale(float)
public void SetAreaMapScale(float scale)
Parameters
scalefloat
SetEnableSkinning(bool)
public void SetEnableSkinning(bool enable)
Parameters
enablebool
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
shaderShader
SetShaderFlags(ulong)
public void SetShaderFlags(ulong flagEntry)
Parameters
flagEntryulong
SetTexture(MBTextureType, Texture)
public void SetTexture(Material.MBTextureType textureType, Texture texture)
Parameters
textureTypeMaterial.MBTextureTypetextureTexture
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).