Skip to content

Commit 833b47c

Browse files
fix(KTX2Loader): mips, cube, p3 (#329)
1 parent 21f7410 commit 833b47c

File tree

2 files changed

+197
-85
lines changed

2 files changed

+197
-85
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { CompressedTexture, CubeReflectionMapping } from 'three'
2+
3+
class CompressedCubeTexture extends CompressedTexture {
4+
constructor(images, format, type) {
5+
super(undefined, images[0].width, images[0].height, format, type, CubeReflectionMapping)
6+
7+
this.isCompressedCubeTexture = true
8+
this.isCubeTexture = true
9+
10+
this.image = images
11+
}
12+
}
13+
14+
export { CompressedCubeTexture }

0 commit comments

Comments
 (0)