Function: createImageSprite()
createImageSprite(
image
,renderLayer
,shaderStore
,cameraEntity
):Sprite
Defined in: rendering/utilities/create-image-sprite.ts:15
Creates a sprite using the provided image and render layer.
Parameters
image
HTMLImageElement
The image to use for the sprite.
renderLayer
The render layer to which the sprite will be added.
shaderStore
The shader store to use for the sprite's material.
cameraEntity
Returns
The created sprite.