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

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

Parameters

name
string

The material name

ambient
Color

The material ambient intensity

specular
Color

The material specular intensity

shininess
float

The material shininess factor (0-1)

texture
Image

The material texture image

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition