-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathlcd1x+natural_vision.dfx
44 lines (41 loc) · 1.54 KB
/
lcd1x+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
39
40
41
42
43
44
// lcd1x+natural_vision shader
=============================================
<options>
name=LCD1x + 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 BRIGHTEN_SCANLINES 16.0 // "Brighten Scanlines"
// - default: 16.0, min: 1.0, max: 32.0, step: 0.5
// (brightness of horizontal lines)
#define BRIGHTEN_LCD 4.0 // "Brighten LCD"
// - default: 4.0, min: 1.0, max: 12.0, step: 0.1
// (brightness of vertical lines)
#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=lcd1x+natural_vision.dsd
sampler:u_texture=0
</pass>