Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Graphics Namespace / RenderContextBase Class / SetMaterial Method / SetMaterial(Color,Color,Color,Color,Single,Boolean) Method
Diffuse front face material color
Diffuse back face material color
Ambient color for front and back faces
Specular color
Shininess color
If true sets the colors regardless of the current ones, else sets them only if they are different from the current ones.

In This Topic
    SetMaterial(Color,Color,Color,Color,Single,Boolean) Method
    In This Topic
    Sets the material components.
    Syntax
    'Declaration
     
    Public Overloads Sub SetMaterial( _
       ByVal diffuseFront As Color, _
       ByVal diffuseBack As Color, _
       ByVal ambient As Color, _
       ByVal specular As Color, _
       ByVal shininess As Single, _
       Optional ByVal force As Boolean _
    ) 
    public void SetMaterial( 
       Color diffuseFront,
       Color diffuseBack,
       Color ambient,
       Color specular,
       float shininess,
       bool force
    )

    Parameters

    diffuseFront
    Diffuse front face material color
    diffuseBack
    Diffuse back face material color
    ambient
    Ambient color for front and back faces
    specular
    Specular color
    shininess
    Shininess color
    force
    If true sets the colors regardless of the current ones, else sets them only if they are different from the current ones.
    See Also