Function: addForgeRenderLayer()
addForgeRenderLayer(
layerName
,gameContainer
,layerService
,world
):ForgeRenderLayer
Defined in: rendering/utilities/add-forge-render-layer.ts:17
Adds a Forge render layer to the game container and registers it with the layer service. It also creates a render system and a batching system for the layer.
Parameters
layerName
string
The name of the layer.
gameContainer
HTMLElement
The HTML element that will contain the canvas.
layerService
The layer service to register the layer with.
world
The ECS world to which the systems will be added.
Returns
An array containing the created layer and canvas.