ohzi-core 6.16.0 → 6.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "6.16.0",
3
+ "version": "6.16.1",
4
4
  "description": "OHZI Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.module.js",
@@ -10,4 +10,12 @@ export default class OrthographicCamera extends THREEOrthographicCamera
10
10
  this.clear_color = new Color('#000000');
11
11
  this.clear_alpha = 1;
12
12
  }
13
+
14
+ copy(camera)
15
+ {
16
+ super.copy(camera);
17
+ this.clear_color.copy(camera.clear_color);
18
+ this.clear_alpha = camera.clear_alpha;
19
+ return this;
20
+ }
13
21
  }
@@ -10,4 +10,12 @@ export default class PerspectiveCamera extends THREEPerspectiveCamera
10
10
  this.clear_color = new Color('#000000');
11
11
  this.clear_alpha = 1;
12
12
  }
13
+
14
+ copy(camera)
15
+ {
16
+ super.copy(camera);
17
+ this.clear_color.copy(camera.clear_color);
18
+ this.clear_alpha = camera.clear_alpha;
19
+ return this;
20
+ }
13
21
  }