@galacean/engine 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/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,14 @@
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
+ // `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
30730
+ var pixelViewport = camera.pixelViewport;
30731
+ if (pixelViewport.width !== 0 || pixelViewport.height !== 0) {
30732
+ Logger.warn("Camera pixelViewport width or height is 0.");
30733
+ // Update post process manager
30734
+ scene.postProcessManager._update(camera);
30735
+ camera.render();
30736
+ }
30732
30737
  componentsManager.callCameraOnEndRender(camera);
30733
30738
  // Temp solution for webgl implement bug
30734
30739
  if (_this1._hardwareRenderer._options._forceFlush) {
@@ -51137,7 +51142,7 @@
51137
51142
  ], EXT_texture_webp);
51138
51143
 
51139
51144
  //@ts-ignore
51140
- var version = "1.5.0";
51145
+ var version = "1.5.1";
51141
51146
  console.log("Galacean Engine Version: " + version);
51142
51147
  for(var key in CoreObjects){
51143
51148
  Loader.registerClass(key, CoreObjects[key]);