Optional animationIf unspecified, no animation will be played.
Optional armorsThe armor textures of the player.
You can specify a single armor material or an array of armor materials.
An armor material can be a RemoteImage, a TextureSource, or null (to hide that piece).
When a single material is provided, its type ("main" for helmet, chestplate, boots; or "legs" for leggings)
will be automatically detected and applied to the corresponding armor pieces.
When an array is provided, its length must be 1, 2, or 4:
"main" and one "legs") and applies them.[helmet, chestplate, leggings, boots].
Any element can be null to leave that slot empty.If the option is omitted, set to null, or an empty array, no armor will be visible.
undefined (no armor)
Optional backgroundThe background of the scene.
transparent
Optional canvasThe canvas where the renderer draws its output.
If unspecified, a new canvas element will be created.
Optional capeThe cape texture of the player.
If unspecified, the cape will be invisible.
Optional earsThe ear texture of the player.
When set to "current-skin", the ears drawn on the current skin texture (as is specified in the skin option) will be shown.
To use an individual ear texture, you have to specify the textureType and the source option.
source is the texture to use, and textureType can be either "standalone" or "skin":
"standalone" means the provided texture is a 14x7 image that only contains the ears."skin" means the provided texture is a skin texture with ears, and we will show its ear part.If unspecified, the ears will be invisible.
Optional enableWhether to enable mouse control function.
This function is implemented using OrbitControls. By default, zooming and rotating are enabled, and panning is disabled.
true
Optional fovCamera vertical field of view, in degrees.
The distance between the player and the camera will be automatically computed from fov and zoom.
Optional heightThe CSS height of the canvas.
Optional modelThe model of the player ("default" for normal arms, and "slim" for slim arms).
When set to "auto-detect", the model will be inferred from the skin texture.
If the skin option is not specified, this option will have no effect.
"auto-detect"
Optional nameThe name tag to display above the player.
Optional panoramaThe panorama background to use.
This option overrides the background option.
Optional pixelThe pixel ratio of the canvas.
When set to "match-device", the current device pixel ratio will be used,
and it will be automatically updated when the device pixel ratio changes.
"match-device"
Optional preserveWhether to preserve the buffers until manually cleared or overwritten.
false
Optional renderWhether to pause the rendering and animation loop.
false
Optional skinThe skin texture of the player.
If unspecified, the skin will be invisible.
Optional widthThe CSS width of the canvas.
Optional zoomZoom ratio of the player.
This value affects the distance between the object and the camera.
When set to 1.0, the top edge of the player's head coincides with the edge of the canvas.
The distance between the player and the camera will be automatically computed from fov and zoom.
Generated using TypeDoc
The animation to play on the player.