-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmodule_postfx.py
More file actions
27 lines (24 loc) · 2.32 KB
/
module_postfx.py
File metadata and controls
27 lines (24 loc) · 2.32 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
from header_postfx import *
####################################################################################################################
# Each postfx_param contains the following fields:
# 1) id (string)
# 2) flags (int)
# 3) tonemap operator type (0,1,2,3)
# 4) shader parameters1 [ HDRRange, HDRExposureScaler, LuminanceAverageScaler, LuminanceMaxScaler ]
# 5) shader parameters2 [ BrightpassTreshold, BrightpassPostPower, BlurStrenght, BlurAmount ]
# 6) shader parameters3 [ AmbientColorCoef, SunColorCoef, SpecularCoef, -reserved ]
####################################################################################################################
#define postfxParams1 (PFX1) float4(postfx_editor_vector[1].x, postfx_editor_vector[1].y, postfx_editor_vector[1].z, postfx_editor_vector[1].w)
#define postfxParams2 (PFX2) float4(postfx_editor_vector[2].x, postfx_editor_vector[2].y, postfx_editor_vector[2].z, postfx_editor_vector[2].w)
#define postfxParams3 (PFX3) float4(postfx_editor_vector[3].x, postfx_editor_vector[3].y, postfx_editor_vector[3].z, postfx_editor_vector[3].w)
postfx_params = [
("default", 0, 0,[128.0000, 1.0588, 1.4510, 09.1765], [0.9608, 1.1373, 1.1373, 0.1961], [25.0/25, 25.0/25, 050.0/25, 1.0000]),
("map_params", 0, 0,[128.0000, 1.0400, 1.2941, 10.0000], [2.3725, 2.1569, 1.8431, 0.4863], [25.0/25, 25.0/25, 050.0/25, 1.0000]),
("indoors", 0, 0,[128.0000, 1.0000, 1.2549, 10.0000], [0.6471, 4.7843, 4.1616, 0.0015], [12.0/25, 25.0/25, 040.0/25, 1.0000]),
("sunset", 0, 0,[128.0000, 0.5882, 0.9804, 00.9804], [0.0784, 2.1176, 1.3725, 0.1255], [25.0/25, 25.0/25, 050.0/25, 1.0000]),
("night", 0, 0,[128.0000, 1.0000, 1.2549, 10.0000], [0.6471, 4.7843, 1.2157, 0.0000], [25.0/25, 25.0/25, 060.0/25, 1.0000]),
("sunny", 0, 0,[128.0000, 0.6667, 0.9804, 00.9804], [0.4510, 2.4314, 1.2941, 0.1412], [25.0/25, 25.0/25, 070.0/25, 1.0000]),
("cloudy", 0, 0,[128.0000, 1.0000, 0.9804, 00.0000], [0.3137, 2.6667, 2.0000, 0.4314], [25.0/25, 25.0/25, 030.0/25, 1.0000]),
("overcast", 0, 0,[128.0000, 1.0000, 0.9804, 00.0000], [0.3137, 2.6667, 2.0000, 0.0000], [25.0/25, 25.0/25, 020.0/25, 1.0000]),
("high_contrast", 0, 3,[128.0000, 1.0000, 1.2941, 10.0000], [0.4314, 2.0000, 1.0588, 0.0549], [25.0/25, 25.0/25, 120.0/25, 1.0000]),
]