Represents a family of shaders. Globally cached to minimise memory usage.
Public Member Functions | |
Shader | GetShader (string extraName) |
Gets a particular variant of this shader. More... | |
Static Public Member Functions | |
static ShaderSet | Get (string name) |
Gets a shader set by name. More... | |
Public Attributes | |
bool | UsesLighting |
True if this set uses lighting. More... | |
string | Name |
The name of this shader set. More... | |
Static Public Attributes | |
static Dictionary< string, ShaderSet > | GlobalCache |
The cache of shader sets. More... | |
Properties | |
static ShaderSet | Standard [get] |
The standard shader set. More... | |
static ShaderSet | StandardLit [get] |
The standard shader set (lit). More... | |
Shader | Normal [get] |
Gets the normal purpose shader. More... | |
Shader | Extruded [get] |
Gets the extrusion shader. More... | |
Shader | Isolated [get] |
Gets the isolation shader. More... | |
Private Member Functions | |
ShaderSet (string name) | |
Creates the shader set for the given family name. More... | |
Private Attributes | |
Shader | CachedNormal |
The normal use shader. More... | |
Shader | CachedExtruded |
The extruded shader. More... | |
Shader | CachedIsolated |
The default isolation shader. More... | |
Static Private Attributes | |
static ShaderSet | CachedStandard |
The standard shader set. Use Standard instead. More... | |
static ShaderSet | CachedStandardLit |
The standard lit shader set. Use StandardLit instead. More... | |
|
inlineprivate |
Creates the shader set for the given family name.
|
inlinestatic |
Gets a shader set by name.
|
inline |
Gets a particular variant of this shader.
|
private |
The extruded shader.
|
private |
The default isolation shader.
|
private |
The normal use shader.
|
staticprivate |
The standard shader set. Use Standard instead.
|
staticprivate |
The standard lit shader set. Use StandardLit instead.
|
static |
The cache of shader sets.
string PowerUI.ShaderSet.Name |
The name of this shader set.
bool PowerUI.ShaderSet.UsesLighting |
True if this set uses lighting.
|
get |
Gets the extrusion shader.
|
get |
Gets the isolation shader.
|
get |
Gets the normal purpose shader.
|
staticget |
The standard shader set.
|
staticget |
The standard shader set (lit).