-
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathshared.h
More file actions
60 lines (46 loc) · 2.15 KB
/
Copy pathshared.h
File metadata and controls
60 lines (46 loc) · 2.15 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
#ifndef SRC_ASSCREEDBLACKFLAGRESYNCED_SHARED_H_
#define SRC_ASSCREEDBLACKFLAGRESYNCED_SHARED_H_
// Must be 32bit aligned
// Should be 4x32
struct ShaderInjectData {
float tone_map_type;
float graphics_white_nits;
float custom_local_exposure_strength;
float custom_local_exposure_shoulder;
float custom_local_exposure_toe;
float custom_color_filter_strength;
float tone_map_highlights;
float tone_map_shadows;
float tone_map_contrast;
float tone_map_flare;
float tone_map_saturation;
float tone_map_dechroma;
float tone_map_coolness;
float custom_bloom;
};
#ifndef __cplusplus
cbuffer shader_injection : register(b13, space50) {
ShaderInjectData shader_injection : packoffset(c0);
}
#define RENODX_UI_MODE 0 // 1u = per pixel BT.2020 PQ Conversion
#define RENODX_UI_GAMMA_CORRECTION 1
#define RENODX_GAME_GAMMA_CORRECTION 1
#define USE_LUM_TM_WITH_CHROMINANCE_CORRECTION 1
#define USE_LUM_GAMMA_CORRECTION_WITH_CHROMINANCE_CORRECTION 1
#define RENODX_TONE_MAP_TYPE shader_injection.tone_map_type
#define RENODX_GRAPHICS_WHITE_NITS shader_injection.graphics_white_nits
#define RENODX_LOCAL_EXPOSURE_STRENGTH shader_injection.custom_local_exposure_strength
#define RENODX_LOCAL_EXPOSURE_SHOULDER shader_injection.custom_local_exposure_shoulder
#define RENODX_LOCAL_EXPOSURE_TOE shader_injection.custom_local_exposure_toe
#define CUSTOM_COLOR_FILTER_STRENGTH shader_injection.custom_color_filter_strength
#define RENODX_TONE_MAP_HIGHLIGHTS shader_injection.tone_map_highlights
#define RENODX_TONE_MAP_SHADOWS shader_injection.tone_map_shadows
#define RENODX_TONE_MAP_CONTRAST shader_injection.tone_map_contrast
#define RENODX_TONE_MAP_SATURATION shader_injection.tone_map_saturation
#define RENODX_TONE_MAP_DECHROMA shader_injection.tone_map_dechroma
#define RENODX_TONE_MAP_FLARE shader_injection.tone_map_flare
#define RENODX_COLOR_GRADE_COOLNESS shader_injection.tone_map_coolness
#define CUSTOM_BLOOM shader_injection.custom_bloom
#include "../../shaders/renodx.hlsl"
#endif
#endif // SRC_ASSCREEDBLACKFLAGRESYNCED_SHARED_H_