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)) {
fork icon1
star icon3
watch icon0

+ 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() {
fork icon0
star icon0
watch icon2

+ 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,
fork icon0
star icon0
watch icon2

+ 5 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)