mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 04:07:11 +02:00
docs
This commit is contained in:
parent
a66125fbb7
commit
0aacdcd558
2 changed files with 8 additions and 0 deletions
|
@ -65,6 +65,12 @@ namespace scriptable {
|
|||
QString lightmapMap;
|
||||
QString scatteringMap;
|
||||
};
|
||||
|
||||
/**jsdoc
|
||||
* @typedef {object} Graphics.MaterialLayer
|
||||
* @property {Material} material - This layer's material.
|
||||
* @property {number} priority - The priority of this layer. If multiple materials are applied to a mesh part, only the highest priority layer is used.
|
||||
*/
|
||||
class ScriptableMaterialLayer {
|
||||
public:
|
||||
ScriptableMaterialLayer() {}
|
||||
|
|
|
@ -21,6 +21,8 @@ namespace scriptable {
|
|||
* @property {Uuid} objectID - UUID of corresponding inworld object (if model is associated)
|
||||
* @property {number} numMeshes - The number of submeshes contained in the model.
|
||||
* @property {Graphics.Mesh[]} meshes - Array of submesh references.
|
||||
* @property {Object.<string, Graphics.MaterialLayer[]>} materialLayers - Map of materials layer lists. You can look up a material layer list by mesh part number or by material name.
|
||||
* @property {string[]} materialNames - Array of all the material names used by the mesh parts of this model, in order (e.g. materialNames[0] is the name of the first mesh part's material).
|
||||
*/
|
||||
|
||||
class ScriptableModel : public ScriptableModelBase {
|
||||
|
|
Loading…
Reference in a new issue