forked from playcanvas/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.js
More file actions
34 lines (31 loc) · 920 Bytes
/
data.js
File metadata and controls
34 lines (31 loc) · 920 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
pc.extend(pc, function() {
/**
* @private
* @name pc.ModelComponentData
* @class Data for a {@link pc.ModelComponent}
* @description Create a new data object
* @extends pc.ComponentData
*/
var ModelComponentData = function () {
// serialized
this.enabled = true;
this.type = 'asset';
this.asset = null;
this.castShadows = true;
this.receiveShadows = true;
this.materialAsset = null;
this.mapping = null;
this.castShadowsLightmap = true;
this.lightmapped = false;
this.lightmapSizeMultiplier = 1;
this.isStatic = false;
this.batchGroupId = -1;
// non-serialized
this.material = null;
this.model = null;
};
ModelComponentData = pc.inherits(ModelComponentData, pc.ComponentData);
return {
ModelComponentData:ModelComponentData
};
}());