فهرست منبع

fix imageProcessing bug

David Catuhe 8 سال پیش
والد
کامیت
dd6bcc45a4

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1338 - 1338
dist/preview release/babylon.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 7 - 7
dist/preview release/babylon.js


+ 3 - 1
dist/preview release/babylon.max.js

@@ -51471,8 +51471,10 @@ var BABYLON;
         });
         ImageProcessingPostProcess.prototype._updateParameters = function () {
             var defines = "";
+            var samplers = ["textureSampler"];
             if (this.colorGradingTexture) {
                 defines = "#define COLORGRADING\r\n";
+                samplers.push("txColorTransform");
             }
             if (this.vignetteBlendMode === ImageProcessingPostProcess._VIGNETTEMODE_MULTIPLY) {
                 defines += "#define VIGNETTEBLENDMODEMULTIPLY\r\n";
@@ -51483,7 +51485,7 @@ var BABYLON;
             if (this.cameraToneMappingEnabled) {
                 defines += "#define TONEMAPPING\r\n";
             }
-            this.updateEffect(defines);
+            this.updateEffect(defines, null, samplers);
         };
         Object.defineProperty(ImageProcessingPostProcess, "VIGNETTEMODE_MULTIPLY", {
             get: function () {

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1338 - 1338
dist/preview release/babylon.module.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 7 - 7
dist/preview release/babylon.worker.js


+ 2 - 7
dist/preview release/canvas2D/babylon.canvas2d.js

@@ -9429,11 +9429,6 @@ var BABYLON;
                         setSize = true;
                     }
                 }
-                else {
-                    //this prevents the prim from flying off the screen when margin is not set (bug #1929)
-                    this._marginOffset.x = 0;
-                    this._marginOffset.y = 0;
-                }
                 if (!hasH) {
                     // If the Horizontal size is Auto, we have to compute it from its content and padding
                     if (isHSizeAuto) {
@@ -9524,10 +9519,10 @@ var BABYLON;
                         }
                         this.onPrimitivePropertyDirty(Prim2DBase_1.actualSizeProperty.flagId);
                     }
+                    this._marginOffset.x -= transbi.x * levelScale.x;
+                    this._marginOffset.y -= transbi.y * levelScale.y;
                 }
                 var lap = this.layoutAreaPos;
-                this._marginOffset.x -= transbi.x * levelScale.x;
-                this._marginOffset.y -= transbi.y * levelScale.y;
                 this.actualPosition = new BABYLON.Vector2(this._marginOffset.x + (lap ? lap.x : 0), this._marginOffset.y + (lap ? lap.y : 0));
                 //                if (setSize) {
                 this.actualSize = primNewSize.clone();

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
dist/preview release/canvas2D/babylon.canvas2d.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1113 - 1113
dist/preview release/customConfigurations/minimalViewer/babylon.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
dist/preview release/customConfigurations/minimalViewer/babylon.js


+ 3 - 1
dist/preview release/customConfigurations/minimalViewer/babylon.max.js

@@ -41478,8 +41478,10 @@ var BABYLON;
         });
         ImageProcessingPostProcess.prototype._updateParameters = function () {
             var defines = "";
+            var samplers = ["textureSampler"];
             if (this.colorGradingTexture) {
                 defines = "#define COLORGRADING\r\n";
+                samplers.push("txColorTransform");
             }
             if (this.vignetteBlendMode === ImageProcessingPostProcess._VIGNETTEMODE_MULTIPLY) {
                 defines += "#define VIGNETTEBLENDMODEMULTIPLY\r\n";
@@ -41490,7 +41492,7 @@ var BABYLON;
             if (this.cameraToneMappingEnabled) {
                 defines += "#define TONEMAPPING\r\n";
             }
-            this.updateEffect(defines);
+            this.updateEffect(defines, null, samplers);
         };
         Object.defineProperty(ImageProcessingPostProcess, "VIGNETTEMODE_MULTIPLY", {
             get: function () {

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1113 - 1113
dist/preview release/customConfigurations/minimalViewer/babylon.module.d.ts


+ 3 - 1
src/PostProcess/babylon.imageProcessingPostProcess.ts

@@ -109,9 +109,11 @@
 
         protected _updateParameters(): void {
             var defines = "";
+            var samplers = ["textureSampler"];
 
             if (this.colorGradingTexture) {
                 defines = "#define COLORGRADING\r\n";
+                samplers.push("txColorTransform");
             }
 
             if (this.vignetteBlendMode === ImageProcessingPostProcess._VIGNETTEMODE_MULTIPLY) {
@@ -124,7 +126,7 @@
                 defines += "#define TONEMAPPING\r\n";
             }
 
-            this.updateEffect(defines);
+            this.updateEffect(defines, null, samplers);
         }
 
         // Statics