class
render::RendererMaterial
template<class T>Wrapper class around Material that allows a simple way to load and set up materials used by the renderer.
Public
Methods
~RendererMaterial<T>
staticGet
Retrieves an instance of this renderer material.
If material has multiple variations the first available variation will be returned.
staticGet
Retrieves an instance of a particular variation of this renderer material.
staticGetShaderPath
Returns the path to the built-in (non-overriden) shader used by this material.
staticGetShaderDefines
Returns a set of dynamically defined defines used when compiling this shader.
CreateGpuParameterSet
Creates a new instance of GPU parameters for this material.
Protected
Constructors
RendererMaterial<T>
Methods
InitializeInternal
Initializes the renderer material.
To be called right after construction.
staticIsShaderInitialized
Checks if the Shader object has been created.
Not variations of the material can be compiled until the shader is created first.
staticIsRendereMaterialVariationCompiled
Checks if a particular variation has been compiled and initialized.
staticInitializeShader
Initializes the Shader object.
This needs to be done before attempting to compile any instances for the material.
staticCompileRendererMaterialVariation
Compiles and initializes a particular variation of the renderer material.
staticCompileRendererMaterialVariation
Compiles and initializes a particular variation of the renderer material.
staticCompileShaderVariation
Compiles a particular shader variation.