-
-
Notifications
You must be signed in to change notification settings - Fork 469
/
Copy pathxrRender_console.h
226 lines (187 loc) · 7.68 KB
/
xrRender_console.h
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
#ifndef xrRender_consoleH
#define xrRender_consoleH
#pragma once
// Common
extern ECORE_API u32 ps_r_sun_shafts; //= 0;
extern ECORE_API const xr_token qsun_shafts_token[];
extern ECORE_API u32 ps_r2_smapsize;
extern ECORE_API const xr_token qsmapsize_token[];
extern ECORE_API u32 ps_r_ssao; // = 0;
extern ECORE_API const xr_token qssao_token[];
extern ECORE_API u32 ps_r_ssao_mode;
extern ECORE_API const xr_token qssao_mode_token[];
extern ECORE_API u32 ps_r_sun_quality; // = 0;
extern ECORE_API u32 ps_r_water_reflection; // = 0;
extern ECORE_API const xr_token qsun_quality_token[];
extern ECORE_API const xr_token qwater_reflection_quality_token[];
extern ECORE_API u32 ps_r3_msaa; // = 0;
extern ECORE_API const xr_token qmsaa_token[];
extern ECORE_API u32 ps_r3_msaa_atest; //= 0;
extern ECORE_API const xr_token qmsaa__atest_token[];
extern ECORE_API u32 ps_r3_minmax_sm; // = 0;
extern ECORE_API const xr_token qminmax_sm_token[];
extern ECORE_API u32 ps_r3_rendering_space; // = 0;
extern ECORE_API const xr_token rendering__space_token[];
extern ENGINE_API int ps_r__Supersample;
extern ECORE_API int ps_r__LightSleepFrames;
extern ECORE_API float ps_r__Detail_l_ambient;
extern ECORE_API float ps_r__Detail_l_aniso;
extern ECORE_API float ps_r__Detail_density;
extern ECORE_API float ps_r__Detail_height;
extern ECORE_API float ps_r__Tree_w_rot;
extern ECORE_API float ps_r__Tree_w_speed;
extern ECORE_API float ps_r__Tree_w_amp;
extern ECORE_API float ps_r__Tree_SBC; // scale bias correct
extern ECORE_API Fvector ps_r__Tree_Wave;
extern ECORE_API float ps_r__WallmarkTTL;
extern ECORE_API float ps_r__WallmarkSHIFT;
extern ECORE_API float ps_r__WallmarkSHIFT_V;
extern ECORE_API float ps_r__GLOD_ssa_start;
extern ECORE_API float ps_r__GLOD_ssa_end;
extern ECORE_API float ps_r__LOD;
//.extern ECORE_API float ps_r__LOD_Power ;
extern ECORE_API float ps_r__ssaDISCARD;
extern ECORE_API float ps_r__ssaDONTSORT;
extern ECORE_API float ps_r__ssaHZBvsTEX;
extern ECORE_API int ps_r__tf_Anisotropic;
extern ECORE_API float ps_r__tf_Mipbias;
enum
{
RFLAG_ACTOR_SHADOW = 1 << 0,
};
extern ECORE_API Flags32 ps_r__common_flags;
// R1
extern ECORE_API float ps_r1_ssaLOD_A;
extern ECORE_API float ps_r1_ssaLOD_B;
extern ECORE_API float ps_r1_lmodel_lerp;
extern ECORE_API float ps_r1_dlights_clip;
extern ECORE_API float ps_r1_pps_u;
extern ECORE_API float ps_r1_pps_v;
extern ECORE_API int ps_r1_force_geomx;
// R1-specific
extern ECORE_API int ps_r1_GlowsPerFrame; // r1-only
extern ECORE_API Flags32 ps_r1_flags; // r1-only
extern ECORE_API float ps_r1_fog_luminance; // 1.f r1-only
extern ECORE_API int ps_r1_SoftwareSkinning; // r1-only
enum
{
R1FLAG_DLIGHTS = (1 << 0),
R1FLAG_FFP = (1 << 1), // don't use shaders, only fixed-function pipeline or software processing
R1FLAG_FFP_LIGHTMAPS = (1 << 2),
};
// R2
extern ECORE_API bool ps_r2_sun_static;
extern ECORE_API bool ps_r2_advanced_pp; // advanced post process and effects
extern ECORE_API float ps_r2_ssaLOD_A;
extern ECORE_API float ps_r2_ssaLOD_B;
// R2-specific
extern ECORE_API Flags32 ps_r2_ls_flags; // r2-only
extern ECORE_API Flags32 ps_r2_ls_flags_ext;
extern ECORE_API float ps_r2_df_parallax_h; // r2-only
extern ECORE_API float ps_r2_df_parallax_range; // r2-only
extern ECORE_API float ps_r2_gmaterial; // r2-only
extern ECORE_API float ps_r2_tonemap_middlegray; // r2-only
extern ECORE_API float ps_r2_tonemap_adaptation; // r2-only
extern ECORE_API float ps_r2_tonemap_low_lum; // r2-only
extern ECORE_API float ps_r2_tonemap_amount; // r2-only
extern ECORE_API float ps_r2_ls_bloom_kernel_scale; // r2-only // gauss
extern ECORE_API float ps_r2_ls_bloom_kernel_g; // r2-only // gauss
extern ECORE_API float ps_r2_ls_bloom_kernel_b; // r2-only // bilinear
extern ECORE_API float ps_r2_ls_bloom_threshold; // r2-only
extern ECORE_API float ps_r2_ls_bloom_speed; // r2-only
extern ECORE_API float ps_r2_ls_dsm_kernel; // r2-only
extern ECORE_API float ps_r2_ls_psm_kernel; // r2-only
extern ECORE_API float ps_r2_ls_ssm_kernel; // r2-only
extern ECORE_API Fvector ps_r2_aa_barier; // r2-only
extern ECORE_API Fvector ps_r2_aa_weight; // r2-only
extern ECORE_API float ps_r2_aa_kernel; // r2-only
extern ECORE_API float ps_r2_mblur; // .5f
extern ECORE_API int ps_r2_GI_depth; // 1..5
extern ECORE_API int ps_r2_GI_photons; // 8..256
extern ECORE_API float ps_r2_GI_clip; // EPS
extern ECORE_API float ps_r2_GI_refl; // .9f
extern ECORE_API float ps_r2_ls_depth_scale; // 1.0f
extern ECORE_API float ps_r2_ls_depth_bias; // -0.0001f
extern ECORE_API float ps_r2_ls_squality; // 1.0f
extern ECORE_API float ps_r2_sun_near; // 10.0f
extern ECORE_API float ps_r2_sun_near_border; // 1.0f
extern ECORE_API float ps_r2_sun_tsm_projection; // 0.2f
extern ECORE_API float ps_r2_sun_tsm_bias; // 0.0001f
extern ECORE_API float ps_r2_sun_depth_far_scale; // 1.00001f
extern ECORE_API float ps_r2_sun_depth_far_bias; // -0.0001f
extern ECORE_API float ps_r2_sun_depth_near_scale; // 1.00001f
extern ECORE_API float ps_r2_sun_depth_near_bias; // -0.0001f
extern ECORE_API float ps_r2_sun_lumscale; // 0.5f
extern ECORE_API float ps_r2_sun_lumscale_hemi; // 1.0f
extern ECORE_API float ps_r2_sun_lumscale_amb; // 1.0f
extern ECORE_API float ps_r2_zfill; // .1f
extern ECORE_API float ps_r2_dhemi_sky_scale; // 1.5f
extern ECORE_API float ps_r2_dhemi_light_scale; // 1.f
extern ECORE_API float ps_r2_dhemi_light_flow; // .1f
extern ECORE_API int ps_r2_dhemi_count; // 5
extern ECORE_API float ps_r2_slight_fade; // 1.f
extern ECORE_API int ps_r2_wait_sleep;
extern ECORE_API int ps_r2_wait_timeout;
// x - min (0), y - focus (1.4), z - max (100)
extern ECORE_API Fvector3 ps_r2_dof;
extern ECORE_API float ps_r2_dof_sky; // distance to sky
extern ECORE_API float ps_r2_dof_kernel_size; // 7.0f
extern ENGINE_API float ps_r3_dyn_wet_surf_near; // 10.0f
extern ENGINE_API float ps_r3_dyn_wet_surf_far; // 30.0f
extern ENGINE_API int ps_r3_dyn_wet_surf_sm_res; // 256
enum
{
R2FLAG_SUN = (1 << 0),
R2FLAG_SUN_FOCUS = (1 << 1),
R2FLAG_SUN_TSM = (1 << 2),
R2FLAG_SUN_DETAILS = (1 << 3),
R2FLAG_TONEMAP = (1 << 4),
R2FLAG_AA = (1 << 5),
R2FLAG_GI = (1 << 6),
R2FLAG_FASTBLOOM = (1 << 7),
R2FLAG_GLOBALMATERIAL = (1 << 8),
R2FLAG_ZFILL = (1 << 9),
R2FLAG_R1LIGHTS = (1 << 10),
R2FLAG_SUN_IGNORE_PORTALS = (1 << 11),
// R2FLAG_SUN_STATIC = (1<<12),
R2FLAG_EXP_SPLIT_SCENE = (1 << 13),
R2FLAG_EXP_DONT_TEST_UNSHADOWED = (1 << 14),
R2FLAG_EXP_DONT_TEST_SHADOWED = (1 << 15),
R2FLAG_USE_NVDBT = (1 << 16),
R2FLAG_USE_NVSTENCIL = (1 << 17),
R2FLAG_EXP_MT_CALC = (1 << 18),
R2FLAG_SOFT_WATER = (1 << 19), // Igor: need restart
R2FLAG_SOFT_PARTICLES = (1 << 20), // Igor: need restart
R2FLAG_VOLUMETRIC_LIGHTS = (1 << 21),
R2FLAG_STEEP_PARALLAX = (1 << 22),
R2FLAG_DOF = (1 << 23),
R1FLAG_DETAIL_TEXTURES = (1 << 24),
R2FLAG_DETAIL_BUMP = (1 << 25),
R3FLAG_DYN_WET_SURF = (1 << 26),
R3FLAG_VOLUMETRIC_SMOKE = (1 << 27),
// R3FLAG_MSAA = (1<<28),
R3FLAG_MSAA_HYBRID = (1 << 28),
R3FLAG_MSAA_OPT = (1 << 29),
R3FLAG_GBUFFER_OPT = (1 << 30),
R3FLAG_USE_DX10_1 = (1 << 31),
// R3FLAG_MSAA_ALPHATEST = (1<<31),
};
enum
{
R2FLAGEXT_SSAO_BLUR = (1 << 0),
R2FLAGEXT_SSAO_OPT_DATA = (1 << 1),
R2FLAGEXT_SSAO_HALF_DATA = (1 << 2),
R2FLAGEXT_SSAO_HBAO = (1 << 3),
R2FLAGEXT_SSAO_HDAO = (1 << 4),
R2FLAGEXT_ENABLE_TESSELLATION = (1 << 5),
R2FLAGEXT_WIREFRAME = (1 << 6),
R_FLAGEXT_HOM_DEPTH_DRAW = (1 << 7),
R2FLAGEXT_SUN_ZCULLING = (1 << 8),
R2FLAGEXT_SUN_OLD = (1 << 9),
R3FLAGEXT_SSR_HALF_DEPTH = (1 << 10),
R3FLAGEXT_SSR_JITTER = (1 << 11),
R4FLAGEXT_NEW_SHADER_SUPPORT = (1 << 12),
};
extern void xrRender_initconsole();
extern BOOL xrRender_test_hw();
#endif