Constructs a BodySprite initializer.
The Web GL API we are using eg., THREE
Optionaltexture: string
The sprite texture
The sprite material properties
Sets the particle body to the sprite.
The particle to set the body of
AbstractresetStaticfromCreates a BodySprite initializer from JSON.
The JSON to construct the instance from
The Web GL API we are using eg., THREE
StaticrequiresDetermines if the initializer requires a WebGL API to be provided to its constructor.
Sets the body property to be a THREE.Sprite on initialized particles.
NOTE The texture map MUST be set on the SpriteMaterial in the TextureLoader.load callback. Not doing so will cause WebGL buffer errors.