Material
WL.Material
Wrapper around a native material
Kind: static class of WL
Note: Do not use this constructor directly, rather use
clone or wrap to create instances.
- .Material
- new WL.Material()
- instance
- static
new WL.Material()
Create a new WL.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 |