How to use the LoaderSupport function from three

Find comprehensive JavaScript three.LoaderSupport code examples handpicked from public code repositorys.

48
49
50
51
52
53
54
55
56
57
  this.onLoadMaterials = null;
}

/**
 * Register callback function that is invoked by internal function "announceProgress" to print feedback.
 * @memberOf THREE.LoaderSupport.Callbacks
 *
 * @param {callback} callbackOnProgress Callback function for described functionality
 */
Callbacks.prototype.setCallbackOnProgress = function ( callbackOnProgress ) {
fork icon1
star icon0
watch icon4

+ 47 other calls in file

138
139
140
141
142
143
144
145
146
147

let callbackOnLoadMaterials = ( materials ) => {
    return materials;
};

let callbacks = new THREE.LoaderSupport.Callbacks();
callbacks.setCallbackOnProgress( this.onProgress.bind(this) );
callbacks.setCallbackOnLoad( callbackOnLoad );
callbacks.setCallbackOnMeshAlter( callbackMeshAlter );
callbacks.setCallbackOnLoadMaterials( callbackOnLoadMaterials );
fork icon0
star icon3
watch icon2

+ 13 other calls in file

Other functions in three

Sorted by popularity

function icon

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