Properties:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
Autotiles.COUNT_LIST |
number |
<optional> |
5 | The tiles list sizes |
Autotiles.LIST_A |
Array.<number> | The tiles list A | ||
Autotiles.LIST_B |
Array.<number> | The tiles list B | ||
Autotiles.LIST_C |
Array.<number> | The tiles list C | ||
Autotiles.LIST_D |
Array.<number> | The tiles list D | ||
texture |
THREE.Texture | The autotiles texture | ||
width |
number | The texture total width | ||
height |
number | The texture total height | ||
geometry |
THREE.Geometry | The autotiles geometry | ||
mesh |
THREE.Mesh | The autotiles mesh | ||
index |
number | The faces index (count) |
Methods
-
Update the geometry of the autotiles according to an autotile and its position
Name Type Description position
Array.<number> The json position autotile
Autotile The autotile to add to geometry -
Create a mesh with material and geometry