Skip to content

Commit a1358b4

Browse files
authored
LUTImageLoader: Harmonize ctor. (#30720)
* LUTImageLoader: Harmonize ctor. * Update LUTImageLoader.js Fix typos.
1 parent 91213ea commit a1358b4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

examples/jsm/loaders/LUTImageLoader.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,23 @@ export class LUTImageLoader extends Loader {
2323
/**
2424
* Constructs a new LUT loader.
2525
*
26-
* @param {boolean} [flipVertical=false] - Whether to vertically flip the LUT or not.
26+
* @param {LoadingManager} [manager] - The loading manager.
2727
*/
28-
constructor( flipVertical = false ) {
28+
constructor( manager ) {
2929

30-
//The NeutralLUT.png has green at the bottom for Unreal ang green at the top for Unity URP Color Lookup
31-
//post-processing. If you're using lut image strips from a Unity pipeline then pass true to the constructor
32-
33-
super();
30+
super( manager );
3431

3532
/**
3633
* Whether to vertically flip the LUT or not.
3734
*
35+
* Depending on the LUT's origin, the texture has green at the bottom (e.g. for Unreal)
36+
* or green at the top (e.g. for Unity URP Color Lookup). If you're using lut image strips
37+
* from a Unity pipeline, then set this property to `true`.
38+
*
3839
* @type {boolean}
3940
* @default false
4041
*/
41-
this.flip = flipVertical;
42+
this.flip = false;
4243

4344
}
4445

0 commit comments

Comments
 (0)