@galacean/engine-core 1.5.0 → 1.5.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/dist/module.js CHANGED
@@ -8370,7 +8370,7 @@ var Camera = /*#__PURE__*/ function(Component) {
8370
8370
  * @defaultValue `Downsampling.TwoX`
8371
8371
  */ _this.opaqueTextureDownsampling = Downsampling.TwoX, /**
8372
8372
  * The screen-space anti-aliasing mode applied after the camera renders the final image.
8373
- * Unlike MSAA, it can smooth all pixels, including by shader-generated specular, alpha-cutoff edge, low resolution texture.
8373
+ * Unlike MSAA, it can smooth all pixels, including by shader-generated specular, alpha-cutoff edge.
8374
8374
  *
8375
8375
  * @defaultValue `AntiAliasing.None`
8376
8376
  */ _this.antiAliasing = AntiAliasing.None, /**
@@ -25994,9 +25994,14 @@ ShaderPool.init();
25994
25994
  } else {
25995
25995
  cameras.forEach(function(camera) {
25996
25996
  componentsManager.callCameraOnBeginRender(camera);
25997
- // Update post process manager
25998
- scene.postProcessManager._update(camera);
25999
- camera.render();
25997
+ // `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
25998
+ var pixelViewport = camera.pixelViewport;
25999
+ if (pixelViewport.width !== 0 || pixelViewport.height !== 0) {
26000
+ Logger.warn("Camera pixelViewport width or height is 0.");
26001
+ // Update post process manager
26002
+ scene.postProcessManager._update(camera);
26003
+ camera.render();
26004
+ }
26000
26005
  componentsManager.callCameraOnEndRender(camera);
26001
26006
  // Temp solution for webgl implement bug
26002
26007
  if (_this1._hardwareRenderer._options._forceFlush) {