Sfoglia il codice sorgente

Merge pull request #9314 from Popov72/fix-photodome

PhotoDome: Fix textureMode lost after changing the texture
David Catuhe 4 anni fa
parent
commit
6029e9dd93
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/Helpers/textureDome.ts

+ 1 - 0
src/Helpers/textureDome.ts

@@ -66,6 +66,7 @@ export abstract class TextureDome<T extends Texture> extends TransformNode {
             this._texture.wrapV = Texture.CLAMP_ADDRESSMODE;
             this._material.reflectionTexture = this._texture;
         }
+        this._changeTextureMode(this._textureMode);
     }
 
     /**