LineRenderer

LineRenderer

Used internally to render a batch of lines all with the same color.

Constructor

new LineRenderer(world)

Parameters:
Name Type Description
world World

The world lines are rendered in.

Methods

_addLine(start, end, color)

Used internally to add a line to the LineRenderer to be rendered next frame.

Parameters:
Name Type Description
start Vector3
end Vector3
color Vector3

_clear()

Used internally to clear the rendering line counter.

_manageRenderList(renderList)

Used internally to push or remove itself from the renderList.

Parameters:
Name Type Description
renderList Array.<Object>

An array of all the renderObjects to send to the Renderer.

_remove()

Used internally to remove itself.

_updateVertexData()

Used internally to update the vertexData in meshData.