Constructor
new MeshCommand(geometry, pass, program, modelMatrix, normalMatrix, startVertex, endVertex)
Constructor
Parameters:
Name | Type | Description |
---|---|---|
geometry |
Geometry | A Geometry instance |
pass |
Pass | A Pass instance |
program |
Program | A Program instance |
modelMatrix |
mat4 | A Matrix with model's transformations (scale, rotate, translate) |
normalMatrix |
mat4 | A Matrix with model's normals transformed |
startVertex |
number | First vertex to draw |
endVertex |
number | Last vertex to draw |
Extends
Methods
execute(renderAPI)
Execute the command
Parameters:
Name | Type | Description |
---|---|---|
renderAPI |
RenderAPI | RenderAPI instance used to process the commands |
isOpaque() → {boolean}
Indicates if the command concern an opaque element
- Inherited From:
True if command must be in the opaque queue
boolean