Darragh Burke 5 лет назад
Родитель
Сommit
5af73d9838
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      inspector/src/textureHelper.ts

+ 3 - 3
inspector/src/textureHelper.ts

@@ -25,7 +25,7 @@ export class TextureHelper {
         let lodPostProcess: PostProcess;
 
         if (!texture.isCube) {
-            lodPostProcess = new PostProcess("lod", "lod", ["lod"], null, 1.0, null, Texture.NEAREST_SAMPLINGMODE, engine);
+            lodPostProcess = new PostProcess("lod", "lod", ["lod"], null, 1.0, null, Texture.NEAREST_NEAREST_MIPNEAREST, engine);
         } else {
             const faceDefines = [
                 "#define POSITIVEX",
@@ -35,7 +35,7 @@ export class TextureHelper {
                 "#define POSITIVEZ",
                 "#define NEGATIVEZ",
             ];
-            lodPostProcess = new PostProcess("lodCube", "lodCube", ["lod"], null, 1.0, null, Texture.NEAREST_SAMPLINGMODE, engine, false, faceDefines[face]);
+            lodPostProcess = new PostProcess("lodCube", "lodCube", ["lod"], null, 1.0, null, Texture.NEAREST_NEAREST_MIPNEAREST, engine, false, faceDefines[face]);
         }
 
         
@@ -69,7 +69,7 @@ export class TextureHelper {
 
         if (internalTexture) {
             const samplingMode = (texture as Texture).samplingMode;
-            texture.updateSamplingMode(BABYLON.Texture.NEAREST_NEAREST_MIPNEAREST);
+            texture.updateSamplingMode(Texture.NEAREST_NEAREST_MIPNEAREST);
             scene.postProcessManager.directRender([lodPostProcess], internalTexture);
             texture.updateSamplingMode(samplingMode);