소스 검색

Canvas2D: potential breaking change!

Sprite2D no longer force the texture wrapU/V to CLAMP_ADDRESSMODE
nockawa 8 년 전
부모
커밋
4ede4171ec
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      canvas2D/src/Engine/babylon.sprite2d.ts

+ 3 - 2
canvas2D/src/Engine/babylon.sprite2d.ts

@@ -355,8 +355,9 @@
             super(settings);
 
             this.texture = texture;
-            this.texture.wrapU = Texture.CLAMP_ADDRESSMODE;
-            this.texture.wrapV = Texture.CLAMP_ADDRESSMODE;
+            // This is removed to let the user the possibility to setup the addressing mode he wants
+            //this.texture.wrapU = Texture.CLAMP_ADDRESSMODE;
+            //this.texture.wrapV = Texture.CLAMP_ADDRESSMODE;
             this._useSize = false;
             this._spriteSize = (settings.spriteSize!=null) ? settings.spriteSize.clone() : null;
             this._spriteLocation = (settings.spriteLocation!=null) ? settings.spriteLocation.clone() : new Vector2(0, 0);