Function: createSprite()
createSprite(
material,renderContext,cameraEntity,width,height):Sprite
Defined in: rendering/utilities/create-sprite.ts:162
Creates a sprite using the provided material and render context.
Parameters
material
The material to use for the sprite.
renderContext
The render context to be used.
cameraEntity
The camera entity for the renderable.
width
number
The width of the sprite.
height
number
The height of the sprite.
Returns
The created sprite.