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