Skip to content

Commit

Permalink
fix(KTX2Loader): mips, cube, p3 (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett authored Dec 30, 2023
1 parent 21f7410 commit 833b47c
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 85 deletions.
14 changes: 14 additions & 0 deletions src/_polyfill/CompressedCubeTexture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { CompressedTexture, CubeReflectionMapping } from 'three'

class CompressedCubeTexture extends CompressedTexture {
constructor(images, format, type) {
super(undefined, images[0].width, images[0].height, format, type, CubeReflectionMapping)

this.isCompressedCubeTexture = true
this.isCubeTexture = true

this.image = images
}
}

export { CompressedCubeTexture }
Loading

0 comments on commit 833b47c

Please sign in to comment.