# Skin

Class · category: Graphics

Source: https://github.com/playcanvas/engine/blob/f059dc005842f76e052cdf44d8370c8c7ec475ac/src/scene/skin.js#L13

A skin contains data about the bones in a hierarchy that drive a skinned mesh animation.
Specifically, the skin stores the bone name and inverse bind matrix and for each bone. Inverse
bind matrices are instrumental in the mathematics of vertex skinning.

## Constructors

### constructor

```ts
new Skin(graphicsDevice: GraphicsDevice, ibp: Mat4[], boneNames: string[])
```

Create a new Skin instance.

**Parameters**

- `graphicsDevice` ([`GraphicsDevice`](https://api.playcanvas.com/engine/classes/GraphicsDevice.md)): The graphics device used to manage this skin.
- `ibp` ([`Mat4`](https://api.playcanvas.com/engine/classes/Mat4.md)`[]`): The array of inverse bind matrices.
- `boneNames` (`string[]`): The array of bone names for the bones referenced by this skin.
