'Declaration Public Overridable Function SetShader( _ ByVal type As shaderType, _ Optional ByVal shaderParams As ShaderParameters, _ Optional ByVal force As Boolean _ ) As Boolean
public virtual bool SetShader( shaderType type, ShaderParameters shaderParams, bool force )
Parameters
- type
- The shader type to set
- shaderParams
- The shader parameters (used only in case the shader is compiled for the first time)
- force
- If true sets the shader regardless of the current one, else sets it only if it's different from the current one.
Return Value
True if the operation is successful, false otherwise