2
0
Эх сурвалжийг харах

Examples: Fix UltraHDRLoader callbacks (#28932)

Nathan Bierema 1 жил өмнө
parent
commit
4755144205

+ 3 - 4
examples/jsm/loaders/UltraHDRLoader.js

@@ -262,7 +262,7 @@ class UltraHDRLoader extends Loader {
 
 
 	}
 	}
 
 
-	load( url, onLoad, onError ) {
+	load( url, onLoad, onProgress, onError ) {
 
 
 		const texture = new DataTexture(
 		const texture = new DataTexture(
 			this.type === HalfFloatType ? new Uint16Array() : new Float32Array(),
 			this.type === HalfFloatType ? new Uint16Array() : new Float32Array(),
@@ -303,8 +303,7 @@ class UltraHDRLoader extends Loader {
 
 
 						if ( onLoad ) onLoad( texture, texData );
 						if ( onLoad ) onLoad( texture, texData );
 
 
-					},
-					onError
+					}
 				);
 				);
 
 
 			} catch ( error ) {
 			} catch ( error ) {
@@ -315,7 +314,7 @@ class UltraHDRLoader extends Loader {
 
 
 			}
 			}
 
 
-		} );
+		}, onProgress, onError );
 
 
 		return texture;
 		return texture;