lythreeframe 1.0.25 → 1.0.27

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.
@@ -2138,6 +2138,7 @@ class ThreeJsApp {
2138
2138
  if (previousCam !== this.camera) {
2139
2139
  this._onCameraChangedDelegate.broadcast();
2140
2140
  }
2141
+ this._camera.updateProjectionMatrix();
2141
2142
  this.viewport.markRenderStateDirty();
2142
2143
  }
2143
2144
  onWindowResize(width, height) {
@@ -2698,6 +2699,7 @@ class SkyActor extends Actor {
2698
2699
  this.name = "DirectionalLightActor";
2699
2700
  this.skyComponent = this.rootComponent;
2700
2701
  this.rootComponent.name = `${this.rootComponent.name}(Root)`;
2702
+ this.setScale(45000, 45000, 45000);
2701
2703
  }
2702
2704
  constructRootComponent() {
2703
2705
  this.skyComponent = new SkyComponent();
@@ -2136,6 +2136,7 @@ class ThreeJsApp {
2136
2136
  if (previousCam !== this.camera) {
2137
2137
  this._onCameraChangedDelegate.broadcast();
2138
2138
  }
2139
+ this._camera.updateProjectionMatrix();
2139
2140
  this.viewport.markRenderStateDirty();
2140
2141
  }
2141
2142
  onWindowResize(width, height) {
@@ -2696,6 +2697,7 @@ class SkyActor extends Actor {
2696
2697
  this.name = "DirectionalLightActor";
2697
2698
  this.skyComponent = this.rootComponent;
2698
2699
  this.rootComponent.name = `${this.rootComponent.name}(Root)`;
2700
+ this.setScale(45000, 45000, 45000);
2699
2701
  }
2700
2702
  constructRootComponent() {
2701
2703
  this.skyComponent = new SkyComponent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",