Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions materialsLibrary/src/sky/skyMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ export class SkyMaterial extends PushMaterial {
// Attribs
MaterialHelper.PrepareDefinesForAttributes(mesh, defines, true, false);

if (defines.IMAGEPROCESSINGPOSTPROCESS !== scene.imageProcessingConfiguration.applyByPostProcess) {
defines.markAsMiscDirty();
}

// Get correct effect
if (defines.isDirty) {
defines.markAsProcessed();
Expand Down
2 changes: 1 addition & 1 deletion src/Materials/Textures/internalTexture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export class InternalTexture {
proxy._swapAndDie(this, false);
rebuildSamples();
this.isReady = true;
}, null, this._buffer, undefined, this.format, undefined, undefined, undefined, undefined, this._useSRGBBuffer);
}, null, this._buffer, undefined, this.format, this._extension, undefined, undefined, undefined, this._useSRGBBuffer);
return;

case InternalTextureSource.Raw:
Expand Down
1 change: 1 addition & 0 deletions src/Misc/khronosTextureContainer2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export class KhronosTextureContainer2 {
}
}

internalTexture._extension = ".ktx2";
internalTexture.width = data.mipmaps[0].width;
internalTexture.height = data.mipmaps[0].height;
internalTexture.isReady = true;
Expand Down