Просмотр исходного кода

LUTImageLoader: Harmonize ctor. (#30720)

* LUTImageLoader: Harmonize ctor.

* Update LUTImageLoader.js

Fix typos.
Michael Herzog 10 месяцев назад
Родитель
Сommit
a1358b4fa0
1 измененных файлов с 8 добавлено и 7 удалено
  1. 8 7
      examples/jsm/loaders/LUTImageLoader.js

+ 8 - 7
examples/jsm/loaders/LUTImageLoader.js

@@ -23,22 +23,23 @@ export class LUTImageLoader extends Loader {
 	/**
 	 * Constructs a new LUT loader.
 	 *
-	 * @param {boolean} [flipVertical=false] - Whether to vertically flip the LUT or not.
+	 * @param {LoadingManager} [manager] - The loading manager.
 	 */
-	constructor( flipVertical = false ) {
+	constructor( manager ) {
 
-		//The NeutralLUT.png has green at the bottom for Unreal ang green at the top for Unity URP Color Lookup
-		//post-processing. If you're using lut image strips from a Unity pipeline then pass true to the constructor
-
-		super();
+		super( manager );
 
 		/**
 		 * Whether to vertically flip the LUT or not.
 		 *
+		 * Depending on the LUT's origin, the texture has green at the bottom (e.g. for Unreal)
+		 * or green at the top (e.g. for Unity URP Color Lookup). If you're using lut image strips
+		 * from a Unity pipeline, then set this property to `true`.
+		 *
 		 * @type {boolean}
 		 * @default false
 		 */
-		this.flip = flipVertical;
+		this.flip = false;
 
 	}
 

粤ICP备19079148号