Class JSC3D.Material
Material
This class implements material which describes the feel and look of a mesh.
Defined in: jsc3d.js.
Constructor Attributes | Constructor Name and Description |
---|---|
JSC3D.Material(name, ambientColor, diffuseColor, transparency, simulateSpecular)
|
Method Attributes | Method Name and Description |
---|---|
Get the palette of the material used for shadings.
|
Class Detail
JSC3D.Material(name, ambientColor, diffuseColor, transparency, simulateSpecular)
- Parameters:
- name
- ambientColor
- diffuseColor
- transparency
- simulateSpecular
Method Detail
{Array}
getPalette()
Get the palette of the material used for shadings.
- Returns:
- {Array} palette of the material as an array.