Sfoglia il codice sorgente

Fix ESM... Stupid me

sevan 8 anni fa
parent
commit
9bdf26be8f

+ 2 - 2
src/Lights/Shadows/babylon.shadowGenerator.ts

@@ -191,8 +191,6 @@
             this._scene = light.getScene();
             light._shadowGenerator = this;
 
-            this._initializeGenerator(1);
-
             // Texture type fallback from float to int if not supported.
             var caps = this._scene.getEngine().getCaps();
             if (caps.textureFloat && caps.textureFloatLinearFiltering && caps.textureFloatRender) {
@@ -203,6 +201,8 @@
                 this._useFullFloat = false;
                 this._textureType = Engine.TEXTURETYPE_UNSIGNED_INT;
             }
+
+            this._initializeGenerator(1);
         }
         
         private _initializeGenerator(boxBlurOffset: number): void {

+ 0 - 2
src/Lights/babylon.spotLight.ts

@@ -74,8 +74,6 @@
             var normalizeDirection;
 
             if (this.computeTransformedInformation()) {
-                Vector3.TransformNormalToRef(this.direction, this.parent.getWorldMatrix(), this.transformedDirection);
-
                 this._uniformBuffer.updateFloat4("vLightData",
                     this.transformedPosition.x,
                     this.transformedPosition.y,