How to use the CompressedTexture function from three
Find comprehensive JavaScript three.CompressedTexture code examples handpicked from public code repositorys.
104 105 106 107 108 109 110 111 112 113
throw new Error('THREE.KTX2Loader: Missing initialization with `.detectSupport( renderer )`.'); } const loader = new three_1.FileLoader(this.manager); loader.setResponseType('arraybuffer'); loader.setWithCredentials(this.withCredentials); const texture = new three_1.CompressedTexture(); loader.load(url, (buffer) => { // Check for an existing task using this buffer. A transferred buffer cannot be transferred // again from this thread. if (_taskCache.has(buffer)) {
1
3
0
+ 17 other calls in file
57 58 59 60 61 62 63 64 65 66
} } /** * Factory & Initializer of THREE.CompressedTexture */ var factory_THREE_CompressedTexture = { props: 15, create: function() {
0
0
2
+ 7 other calls in file
44 45 46 47 48 49 50 51 52 53
inst.unpackAlignment, inst.image]; } /** * Property getter THREE.CompressedTexture */ function getter_THREE_CompressedTexture(inst) { return [ inst.name,
0
0
2
+ 5 other calls in file
three.Vector3 is the most popular function in three (22341 examples)