RenderContextBase.SetMaterial (Color, Color, Color, Color, Single, Boolean) Method

Sets the material components.
Public 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 = false _ 
)
This language is not supported or no code example is available.
public void SetMaterial( 
Color diffuseFront
Color diffuseBack
Color ambient
Color specular
float shininess
bool force = false 
)
This language is not supported or no code example is available.

Parameters

diffuseFront
Color

Diffuse front face material color

diffuseBack
Color

Diffuse back face material color

ambient
Color

Ambient color for front and back faces

specular
Color

Specular color

shininess
float

Shininess color

force
bool

If true sets the colors regardless of the current ones, else sets them only if they are different from the current ones.

.NET Framework

Supported in: 4.8

In this article

Definition