-
Notifications
You must be signed in to change notification settings - Fork 21
/
natural_vision.dfx
38 lines (35 loc) · 1.09 KB
/
natural_vision.dfx
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
// natural_vision shader
=============================================
<options>
name=Natural Vision
textures=1
</options>
<fheader>
#if GL_ES
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
#endif
// Configuration
#define NATVIS_GIN 1.91 // "NaturalVision Gamma In"
// - default: 1.91, min: 0.0, max: 10.0, step: 0.01
#define NATVIS_GOUT 1.91 // "NaturalVision Gamma Out"
// - default: 1.91, min: 0.0, max: 10.0, step: 0.01
#define NATVIS_Y 1.1 // "NaturalVision Luminance"
// - default: 1.1, min: 0.0, max: 10.0, step: 0.01
#define NATVIS_I 1.1 // "NaturalVision Orange-Cyan"
// - default: 1.1, min: 0.0, max: 10.0, step: 0.01
#define NATVIS_Q 1.1 // "NaturalVision Magenta-Green"
// - default: 1.1, min: 0.0, max: 10.0, step: 0.01
</fheader>
<texture:0>
input=framebuffer
min_filter=GL_NEAREST
mag_filter=GL_NEAREST
</texture>
<pass>
shader=natural_vision.dsd
sampler:u_texture=0
</pass>