Class

MeshCommand

MeshCommand(geometry, pass, program, modelMatrix, normalMatrix, startVertex, endVertex)

Draw meshes

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

View Source Renderers/Commands/MeshCommand.js, line 10

Extends

Methods

execute(renderAPI)

Execute the command
Parameters:
Name Type Description
renderAPI RenderAPI RenderAPI instance used to process the commands
Overrides:

View Source Renderers/Commands/MeshCommand.js, line 87

isOpaque() → {boolean}

Indicates if the command concern an opaque element
Inherited From:

View Source Renderers/Commands/RenderCommand.js, line 12

True if command must be in the opaque queue
boolean