diff --git a/examples/files.js b/examples/files.js index 7a810253720789c3e1aa4ac12b7be60c568a9dc2..7330b4dcb0f49664de530243a987d70821994d65 100644 --- a/examples/files.js +++ b/examples/files.js @@ -126,6 +126,7 @@ var files = { "webgl_loader_sea3d_sound", "webgl_loader_stl", "webgl_loader_svg", + "webgl_loader_texture_basis", "webgl_loader_texture_dds", "webgl_loader_texture_exr", "webgl_loader_texture_hdr", diff --git a/examples/js/loaders/BasisTextureLoader.js b/examples/js/loaders/BasisTextureLoader.js index 5dada176dee5bcace51250d1a6d5f2115d48eceb..89bfdb8407eff2b5721c952882677a899517e4d4 100644 --- a/examples/js/loaders/BasisTextureLoader.js +++ b/examples/js/loaders/BasisTextureLoader.js @@ -143,9 +143,7 @@ THREE.BasisTextureLoader = class BasisTextureLoader { texture.minFilter = THREE.LinearMipMapLinearFilter; texture.magFilter = THREE.LinearFilter; - texture.encoding = THREE.sRGBEncoding; texture.generateMipmaps = false; - texture.flipY = false; texture.needsUpdate = true; return texture; diff --git a/examples/textures/compressed/kodim20.basis b/examples/textures/compressed/kodim20.basis new file mode 100644 index 0000000000000000000000000000000000000000..54f00bb3acab26b3db755472a64927ead8b17a1d Binary files /dev/null and b/examples/textures/compressed/kodim20.basis differ diff --git a/examples/webgl_loader_texture_basis.html b/examples/webgl_loader_texture_basis.html new file mode 100644 index 0000000000000000000000000000000000000000..d7677973096d31422d9f6f53e29c0211a90c6941 --- /dev/null +++ b/examples/webgl_loader_texture_basis.html @@ -0,0 +1,112 @@ + + +
+