Parcourir la source

Merge pull request #1241 from sebavan/master

Fix Shadow FullFloat
David Catuhe il y a 9 ans
Parent
commit
3abeaffbd4
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Lights/Shadows/babylon.shadowGenerator.ts

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

@@ -164,7 +164,7 @@
                 }
                 }
 
 
                 if (!this._shadowMap2) {
                 if (!this._shadowMap2) {
-                    this._shadowMap2 = new RenderTargetTexture(light.name + "_shadowMap", mapSize, this._scene, false);
+                    this._shadowMap2 = new RenderTargetTexture(light.name + "_shadowMap", mapSize, this._scene, false, true, textureType);
                     this._shadowMap2.wrapU = Texture.CLAMP_ADDRESSMODE;
                     this._shadowMap2.wrapU = Texture.CLAMP_ADDRESSMODE;
                     this._shadowMap2.wrapV = Texture.CLAMP_ADDRESSMODE;
                     this._shadowMap2.wrapV = Texture.CLAMP_ADDRESSMODE;
                     this._shadowMap2.updateSamplingMode(Texture.TRILINEAR_SAMPLINGMODE);
                     this._shadowMap2.updateSamplingMode(Texture.TRILINEAR_SAMPLINGMODE);