Material

Material

Material

Constructor

new Material()

Extends

Members

ambientColor :System.Drawing.Color

Type:
  • System.Drawing.Color

diffuseColor :System.Drawing.Color

Type:
  • System.Drawing.Color

disableLighting :bool

Type:
  • bool

emissionColor :System.Drawing.Color

Type:
  • System.Drawing.Color

fresnelIndexOfRefraction :double

Gets or sets the Fresnel index of refraction of the material, default is 1.56
Type:
  • double

fresnelReflections :bool

Gets or sets if Fresnel reflections are used.
Type:
  • bool

id :Guid

Inherited From:
Gets or sets the ID of the current instance.
Type:
  • Guid

indexOfRefraction :double

Gets or sets the index of refraction of the material, generally >= 1.0 (speed of light in vacuum)/(speed of light in material)
Type:
  • double

isValid :bool

Inherited From:
Tests an object to see if it is valid.
Type:
  • bool

name :string

Type:
  • string

previewColor :System.Drawing.Color

Very simple preview color function for GUIs.
Type:
  • System.Drawing.Color

reflectionColor :System.Drawing.Color

Type:
  • System.Drawing.Color

reflectionGlossiness :double

Gets or sets the reflection glossiness.
Type:
  • double

reflectivity :double

Gets or sets how reflective a material is, 0f is no reflection 1f is 100% reflective.
Type:
  • double

refractionGlossiness :double

Gets or sets the refraction glossiness.
Type:
  • double

renderPlugInId :Guid

The Id of the RenderPlugIn that is associated with this material.
Type:
  • Guid

shine :double

Gets or sets the shine factor of the material.
Type:
  • double

specularColor :System.Drawing.Color

Type:
  • System.Drawing.Color

transparency :double

Gets or sets the transparency of the material (0.0 = opaque to 1.0 = transparent)
Type:
  • double

transparentColor :System.Drawing.Color

Type:
  • System.Drawing.Color

userStringCount

Inherited From:

Methods

(static) compareAppearance()

...

default()

Set material to default settings.

encode()

Inherited From:
...

getBitmapTexture()

getBumpTexture() → {Texture}

Gets the bump texture of this material.
Returns:
A texture; or null if no bump texture has been added to this material.
Type
Texture

getEnvironmentTexture()

getTexture()

Get the texture that corresponds with the specified texture type for this material.

getTransparencyTexture()

getUserString()

Inherited From:
...

getUserStrings()

Inherited From:
...

physicallyBased()

...

rdkXml()

Inherited From:
...

setBitmapTexture()

setBumpTexture()

setEnvironmentTexture()

setTransparencyTexture()

setUserString()

Inherited From:
...

toJSON()

Inherited From:
Create a JSON string representation of this object