-
-
Notifications
You must be signed in to change notification settings - Fork 241
Expand file tree
/
Copy pathToneMapping.ts
More file actions
65 lines (49 loc) · 1.18 KB
/
ToneMapping.ts
File metadata and controls
65 lines (49 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
* An enumeration of tone mapping techniques.
*
* @category Enums
* @see https://64.github.io/tonemapping
*/
export enum ToneMapping {
/**
* No tone mapping, only exposure. Colors will be clamped to the output range.
*/
LINEAR = 0,
/**
* Basic Reinhard tone mapping.
*
* @see https://www.cs.utah.edu/docs/techreports/2002/pdf/UUCS-02-001.pdf
*/
REINHARD = 1,
/**
* Optimized filmic operator by Jim Hejl and Richard Burgess-Dawson.
*
* @see http://filmicworlds.com/blog/filmic-tonemapping-operators
*/
CINEON = 2,
/**
* ACES filmic tone mapping with a scale of 1.0/0.6.
*/
ACES_FILMIC = 3,
/**
* Filmic tone mapping based on Blender's implementation using rec 2020 primaries.
*
* @see https://github.com/EaryChow/AgX
*/
AGX = 4,
/**
* Neutral tone mapping by Khronos.
*
* @see https://github.com/KhronosGroup/ToneMapping
* @see https://modelviewer.dev/examples/tone-mapping
*/
NEUTRAL = 5,
/**
* Custom tone mapping.
*
* This mode expects a custom implementation by modifying the `tonemapping_pars_fragment` shader chunk.
*
* @see https://threejs.org/docs/?q=shader#api/en/renderers/shaders/ShaderChunk
*/
CUSTOM = 6
}