@galacean/engine 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/browser.js +11 -5
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/package.json +5 -5
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
|
|
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
|
-
//
|
|
30730
|
-
|
|
30731
|
-
|
|
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) {
|
|
@@ -43105,6 +43110,7 @@
|
|
|
43105
43110
|
if (!gl.isContextLost()) {
|
|
43106
43111
|
throw new Error("The format of the attachment is not supported or if depth and stencil attachments are not the same renderbuffer");
|
|
43107
43112
|
}
|
|
43113
|
+
break;
|
|
43108
43114
|
case gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:
|
|
43109
43115
|
throw new Error("The values of gl.RENDERBUFFER_SAMPLES are different among attached renderbuffers, or are non-zero if the attached images are a mix of renderbuffers and textures.");
|
|
43110
43116
|
}
|
|
@@ -51136,7 +51142,7 @@
|
|
|
51136
51142
|
], EXT_texture_webp);
|
|
51137
51143
|
|
|
51138
51144
|
//@ts-ignore
|
|
51139
|
-
var version = "1.5.
|
|
51145
|
+
var version = "1.5.1";
|
|
51140
51146
|
console.log("Galacean Engine Version: " + version);
|
|
51141
51147
|
for(var key in CoreObjects){
|
|
51142
51148
|
Loader.registerClass(key, CoreObjects[key]);
|