Extends
Methods
draw(renderTarget)
Draw the element
Parameters:
Name | Type | Description |
---|---|---|
renderTarget |
RenderTarget | Renderer who called this method |
- Overrides:
getMaterial() → {Material}
Returns a reference to the Material used by this mesh
A Material instance
setGeometry(geometry) → {Mesh}
Set geometry
Parameters:
Name | Type | Description |
---|---|---|
geometry |
Geometry | A Geometry instance |
A reference to the instance
setMaterial(material) → {Mesh}
Set material
Parameters:
Name | Type | Description |
---|---|---|
material |
Material | A Material instance |
A reference to the instance
setProgram(program) → {Mesh}
Set program
Parameters:
Name | Type | Description |
---|---|---|
program |
Program | A Program instance |
A reference to the instance
visit(renderTarget) → {boolean}
Visit the node and his children
Parameters:
Name | Type | Description |
---|---|---|
renderTarget |
RenderTarget | Renderer who called this method |
- Inherited From:
True if visit was successful, otherwise false
boolean