Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Graphics Namespace / RenderContextBase Class / SetShader Method
The shader type to set
The shader parameters (used only in case the shader is compiled for the first time)
If true sets the shader regardless of the current one, else sets it only if it's different from the current one.

In This Topic
    SetShader Method (RenderContextBase)
    In This Topic
    Sets the shader as current.
    Syntax
    '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
    See Also