MaterialKeyedCollection.Add (String, Color, Color, Color, Single) Method

Adds a new material definition.
Public Sub Add( _ 
ByVal name As String, _ 
ByVal ambient As Color, _ 
ByVal diffuse As Color, _ 
ByVal specular As Color, _ 
ByVal shininess As Single
)
This language is not supported or no code example is available.
public void Add( 
string name
Color ambient
Color diffuse
Color specular
float shininess 
)
This language is not supported or no code example is available.

Parameters

name
string

The material name

ambient
Color

The material ambient intensity

diffuse
Color

The material diffuse intensity

specular
Color

The material specular intensity

shininess
float

The material shininess factor (0-1)

.NET Framework

Supported in: 4.8

In this article

Definition