Material
Material
Wrapper around a native material
Kind: global class
Note: Do not use this constructor directly, rather use
clone or wrap to create instances.
- Material
- new Material()
- instance
- static
new Material ()
Create a new Material. Used internally by wrap.
.shader ⇒ string
Kind: instance property of Material
Returns: string - Name of the shader used by this material
.clone () ⇒ Material
Create a copy of the underlying native material and wrap the result
Kind: instance method of Material
Returns: Material - Material clone
.wrap (index) ⇒ Material
Wrap a native material index
Kind: static method of Material
Returns: Material - Material instance or null if index <= 0.
Param | Type |
---|---|
index | number |