@galacean/engine 1.5.0 → 1.5.2

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/dist/browser.js CHANGED
@@ -13292,7 +13292,7 @@
13292
13292
  * @defaultValue `Downsampling.TwoX`
13293
13293
  */ _this.opaqueTextureDownsampling = Downsampling.TwoX, /**
13294
13294
  * The screen-space anti-aliasing mode applied after the camera renders the final image.
13295
- * Unlike MSAA, it can smooth all pixels, including by shader-generated specular, alpha-cutoff edge, low resolution texture.
13295
+ * Unlike MSAA, it can smooth all pixels, including by shader-generated specular, alpha-cutoff edge.
13296
13296
  *
13297
13297
  * @defaultValue `AntiAliasing.None`
13298
13298
  */ _this.antiAliasing = AntiAliasing.None, /**
@@ -30726,9 +30726,15 @@
30726
30726
  } else {
30727
30727
  cameras.forEach(function(camera) {
30728
30728
  componentsManager.callCameraOnBeginRender(camera);
30729
- // Update post process manager
30730
- scene.postProcessManager._update(camera);
30731
- camera.render();
30729
+ var pixelViewport = camera.pixelViewport;
30730
+ // `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
30731
+ if (pixelViewport.width !== 0 && pixelViewport.height !== 0) {
30732
+ // Update post process manager
30733
+ scene.postProcessManager._update(camera);
30734
+ camera.render();
30735
+ } else {
30736
+ Logger.warn("Camera pixelViewport width or height is 0.");
30737
+ }
30732
30738
  componentsManager.callCameraOnEndRender(camera);
30733
30739
  // Temp solution for webgl implement bug
30734
30740
  if (_this1._hardwareRenderer._options._forceFlush) {
@@ -51137,7 +51143,7 @@
51137
51143
  ], EXT_texture_webp);
51138
51144
 
51139
51145
  //@ts-ignore
51140
- var version = "1.5.0";
51146
+ var version = "1.5.2";
51141
51147
  console.log("Galacean Engine Version: " + version);
51142
51148
  for(var key in CoreObjects){
51143
51149
  Loader.registerClass(key, CoreObjects[key]);