forked from phaserjs/phaser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMesh.js
More file actions
43 lines (32 loc) · 944 Bytes
/
Copy pathMesh.js
File metadata and controls
43 lines (32 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../utils/Class');
var CONST = require('./const');
var GameObject3D = require('./GameObject3D');
var Mesh = new Class({
Extends: GameObject3D,
initialize:
function Mesh (geometry, material)
{
GameObject3D.call(this);
/**
* An instance of Geometry.
* @type {Geometry}
*/
this.geometry = geometry;
/**
* A material or an array of materials.
* @type {Material}
*/
this.material = material;
/**
* An array of weights typically from 0-1 that specify how much of the morph is applied.
*/
this.morphTargetInfluences = null;
this.type = CONST.OBJECT_TYPE.MESH;
}
});
module.exports = Mesh;