M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Engine.Shader Class Reference

Representation of shader resource in Mono domain No means of shader copying is provided in this interface so all the accessor properties are read only.

Inherits TaleWorlds.Engine.Resource.

Public Member Functions

UInt64 GetMaterialShaderFlagMask (string flagName, bool showErrors=true)
 

Static Public Member Functions

static Shader GetFromResource (string shaderName)
 Returns the Mono representation of the the shader whose name is 'shaderName'.
 

Properties

string Name [get]
 Gets the name of the shader.
 
- Properties inherited from TaleWorlds.Engine.Resource
bool IsValid [get]
 

Additional Inherited Members

- Protected Member Functions inherited from TaleWorlds.Engine.Resource
 Resource ()
 
void CheckResourceParameter (Resource param, string paramName="")
 Check if the parameter 'param' is null or invalid and throws an exception containing 'paramName' as further information.
 

Member Function Documentation

◆ GetFromResource()

static Shader TaleWorlds.Engine.Shader.GetFromResource ( string  shaderName)
static
Parameters
shaderNameThe name of the shader to be retrieved
Returns

Returns the Mono representation of the shader whose name is 'shaderName' Returns the previously retrieved instance. A new instance is created if there is none previously or its has been GCed.

If there is a shader named 'shaderName' then returns a valid MBShader object. Otherwise returns null.

◆ GetMaterialShaderFlagMask()

UInt64 TaleWorlds.Engine.Shader.GetMaterialShaderFlagMask ( string  flagName,
bool  showErrors = true 
)

Property Documentation

◆ Name

string TaleWorlds.Engine.Shader.Name
get