Browse Source

small change to get a better copy for TextureTools

David Catuhe 8 năm trước cách đây
mục cha
commit
98a640d8e9

BIN
assets/textures/grass.dds


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 6090 - 6090
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 6090 - 6090
dist/preview release/babylon.module.d.ts


+ 3 - 0
src/Tools/babylon.textureTools.ts

@@ -37,6 +37,9 @@
             rtt.anisotropicFilteringLevel = texture.anisotropicFilteringLevel;
 			rtt._texture.isReady = false;
 
+			texture.wrapU = Texture.CLAMP_ADDRESSMODE;
+			texture.wrapV = Texture.CLAMP_ADDRESSMODE;
+
             let passPostProcess = new BABYLON.PassPostProcess("pass", 1, null, Texture.BILINEAR_SAMPLINGMODE, engine, false, Engine.TEXTURETYPE_UNSIGNED_INT);
 			passPostProcess.getEffect().executeWhenCompiled(() => {
                 passPostProcess.onApply = function (effect) {