|
@@ -25,7 +25,7 @@ export class TextureHelper {
|
|
let lodPostProcess: PostProcess;
|
|
let lodPostProcess: PostProcess;
|
|
|
|
|
|
if (!texture.isCube) {
|
|
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 {
|
|
} else {
|
|
const faceDefines = [
|
|
const faceDefines = [
|
|
"#define POSITIVEX",
|
|
"#define POSITIVEX",
|
|
@@ -35,7 +35,7 @@ export class TextureHelper {
|
|
"#define POSITIVEZ",
|
|
"#define POSITIVEZ",
|
|
"#define NEGATIVEZ",
|
|
"#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) {
|
|
if (internalTexture) {
|
|
const samplingMode = (texture as Texture).samplingMode;
|
|
const samplingMode = (texture as Texture).samplingMode;
|
|
- texture.updateSamplingMode(BABYLON.Texture.NEAREST_NEAREST_MIPNEAREST);
|
|
|
|
|
|
+ texture.updateSamplingMode(Texture.NEAREST_NEAREST_MIPNEAREST);
|
|
scene.postProcessManager.directRender([lodPostProcess], internalTexture);
|
|
scene.postProcessManager.directRender([lodPostProcess], internalTexture);
|
|
texture.updateSamplingMode(samplingMode);
|
|
texture.updateSamplingMode(samplingMode);
|
|
|
|
|