|
@@ -24,13 +24,7 @@ import { Color } from '../math/Color.js';
|
|
|
* @author alteredq / http://alteredqualia.com/
|
|
|
*/
|
|
|
|
|
|
-function Loader() {
|
|
|
-
|
|
|
- this.onLoadStart = function () {};
|
|
|
- this.onLoadProgress = function () {};
|
|
|
- this.onLoadComplete = function () {};
|
|
|
-
|
|
|
-}
|
|
|
+function Loader() {}
|
|
|
|
|
|
Loader.Handlers = {
|
|
|
|
|
@@ -69,6 +63,12 @@ Object.assign( Loader.prototype, {
|
|
|
|
|
|
crossOrigin: undefined,
|
|
|
|
|
|
+ onLoadStart: function () {},
|
|
|
+
|
|
|
+ onLoadProgress: function () {},
|
|
|
+
|
|
|
+ onLoadComplete: function () {},
|
|
|
+
|
|
|
initMaterials: function ( materials, texturePath, crossOrigin ) {
|
|
|
|
|
|
var array = [];
|