Class StandardShaderUtility
Mixed Reality standard shader utility class with commonly used constants, types and convenience methods.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class StandardShaderUtility
Fields
MrtkStandardShaderName
The string name of the Mixed Reality Toolkit/Standard shader which can be used to identify a shader or for shader lookups.
Declaration
public static readonly string MrtkStandardShaderName
Field Value
Type | Description |
---|---|
String |
MrtkStandardShaderName
The string name of the Mixed Reality Toolkit/Standard shader which can be used to identify a shader or for shader lookups.
Declaration
public static readonly string MrtkStandardShaderName
Field Value
Type | Description |
---|---|
String |
Properties
MrtkStandardShader
Returns an instance of the Mixed Reality Toolkit/Standard shader.
Declaration
public static Shader MrtkStandardShader { get; }
Property Value
Type | Description |
---|---|
Shader |
MrtkStandardShader
Returns an instance of the Mixed Reality Toolkit/Standard shader.
Declaration
public static Shader MrtkStandardShader { get; }
Property Value
Type | Description |
---|---|
Shader |
Methods
IsMrtkStandardShader(Shader)
Checks if a shader is the Mixed Reality Toolkit/Standard shader.
Declaration
public static bool IsMrtkStandardShader(Shader shader)
Parameters
Type | Name | Description |
---|---|---|
Shader | shader | The shader to check. |
Returns
Type | Description |
---|---|
Boolean | True if the shader is the Mixed Reality Toolkit/Standard shader. |
IsMrtkStandardShader(Shader)
Checks if a shader is the Mixed Reality Toolkit/Standard shader.
Declaration
public static bool IsMrtkStandardShader(Shader shader)
Parameters
Type | Name | Description |
---|---|---|
Shader | shader | The shader to check. |
Returns
Type | Description |
---|---|
Boolean | True if the shader is the Mixed Reality Toolkit/Standard shader. |
IsUsingMrtkStandardShader(Material)
Checks if a material is using the Mixed Reality Toolkit/Standard shader.
Declaration
public static bool IsUsingMrtkStandardShader(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to check. |
Returns
Type | Description |
---|---|
Boolean | True if the material is using the Mixed Reality Toolkit/Standard shader |
IsUsingMrtkStandardShader(Material)
Checks if a material is using the Mixed Reality Toolkit/Standard shader.
Declaration
public static bool IsUsingMrtkStandardShader(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to check. |
Returns
Type | Description |
---|---|
Boolean | True if the material is using the Mixed Reality Toolkit/Standard shader |