You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/manuals/model.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,12 @@ Apart from the properties *Id*, *Position* and *Rotation* the following componen
26
26
: This property should refer to the glTF *.gltf* or Collada *.dae* file that contains the mesh to use. If the file contains multiple meshes, only the first one is read.
27
27
28
28
*Material*
29
-
: Set this property to a material you have created that is suitable for a textured 3D object. There is a built-in *model.material* file that you can use as a starting point.
29
+
: Set this property to a material you have created that is suitable for a textured 3D object. There are a number of built-in materials that you can use as a starting point:
30
+
31
+
* Use *model.material* for static non-instanced models
32
+
* Use *model_instances.material* for static instanced models
33
+
* Use *model_skinned.material* for skinned (animated) non-instanced models
34
+
* Use *model_skinned_instances.material* for skinned (animated) instanced models
30
35
31
36
*Texture*
32
37
: This property should point to the texture image file that you want applied to the object.
@@ -92,7 +97,14 @@ A model also has a number of different properties that can be manipulated using
92
97
93
98
3D software commonly allows you to set properties on your object vertices, like coloring and texturing. This information goes into the glTF *.gltf* or Collada *.dae* file that you export from your 3D software. Depending on the requirements of your game you will have to select and/or create appropriate and _performant_ materials for your objects. A material combines _shader programs_ with a set of parameters for rendering of the object.
94
99
95
-
There is a simple 3D model material available in the built-in materials folder. If you need to create custom materials for your models, see the [Material documentation](/manuals/material) for information. The [Shader manual](/manuals/shader) contains information on how shader programs work.
100
+
There are a number of built-in materials that you can use as a starting point:
101
+
102
+
* Use *model.material* for static non-instanced models
103
+
* Use *model_instances.material* for static instanced models
104
+
* Use *model_skinned.material* for skinned (animated) non-instanced models
105
+
* Use *model_skinned_instances.material* for skinned (animated) instanced models
106
+
107
+
If you need to create custom materials for your models, see the [Material documentation](/manuals/material) for information. The [Shader manual](/manuals/shader) contains information on how shader programs work.
0 commit comments