SetMaterial(Color,Color,Color,Color,Single,Boolean) Method
In This Topic
Sets the material components.
Syntax
'Declaration
Public Overloads Sub SetMaterial( _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal As Color, _
ByVal As Single, _
Optional ByVal As Boolean _
)
public void SetMaterial(
Color ,
Color ,
Color ,
Color ,
float ,
bool
)
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