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
41 lines (39 loc) · 1.29 KB
/
data.js
File metadata and controls
41 lines (39 loc) · 1.29 KB
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
pc.extend(pc, function () {
/**
* @private
* @name pc.CameraComponentData
* @class ComponentData structure for Camera components.
* @extends pc.ComponentData
*/
var CameraComponentData = function () {
// serialized
this.clearColor = new pc.Color(0.722, 0.722, 0.722, 1);
this.clearColorBuffer = true;
this.clearDepthBuffer = true;
this.clearStencilBuffer = true;
this.nearClip = 0.1;
this.farClip = 1000;
this.fov = 45;
this.orthoHeight = 100;
this.projection = pc.PROJECTION_PERSPECTIVE;
this.priority = 0;
this.rect = new pc.Vec4(0,0,1,1);
this.scissorRect = new pc.Vec4(0,0,1,1);
this.enabled = true;
this.frustumCulling = false;
this.cullFaces = true;
this.flipFaces = false;
// not serialized
this.camera = null;
this.aspectRatio = 16 / 9;
this.renderTarget = null;
this.postEffects = null;
this.isRendering = false;
this.calculateTransform = null;
this.calculateProjection = null;
};
CameraComponentData = pc.inherits(CameraComponentData, pc.ComponentData);
return {
CameraComponentData: CameraComponentData
};
}());