Skip to content

Commit 40deefd

Browse files
committed
Updated README.md
1 parent 2e5f4d2 commit 40deefd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,22 @@ var textures = [
7474
var model = new JsonModel('myModel', json, textures)
7575
```
7676

77-
The `name` must match the file name, regardless of the folder in which it is. This means that `folderA/myTexture` and `folderB/myTexture` will both use the texture named `myTexture`, even if the original textures are not the same.
77+
The `name` property must match the texture's file name, regardless of the folder in which it is. This means that `folderA/myTexture` and `folderB/myTexture` will both use the texture named `myTexture`, even if the original textures are not the same.
7878

7979
The `texture` property must be the image dataURL of the corresponding texture.
8080

81+
#### Animated textures
82+
83+
If the texture is an animated texture, the .mcmeta file must be provided as well. For instance, if a model has only one animated texture, the `textures` Array will look like this:
84+
85+
```javascript
86+
var textures = [{name: 'animatedTexture', texture: textureDataURL, mcmeta: textureMcmeta}]
87+
```
88+
89+
The `mcmeta` property must be a JSON string that contains the content of the mcmeta file of the texture.
90+
91+
Note that the viewer doesn't support frame interpolation.
92+
8193
#### Methods
8294

8395
`JsonModel` objects inherit from `THREE.Object3D`, see the [three.js documentation](http://threejs.org/docs/index.html#Reference/Core/Object3D) for more information.

0 commit comments

Comments
 (0)