Remove old macro'd render options
This commit is contained in:
parent
0d0a37e315
commit
f49ef792ab
1 changed files with 6 additions and 22 deletions
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
constexpr int brdf_resolution = 512;
|
constexpr int brdf_resolution = 512;
|
||||||
|
|
||||||
constexpr bool default_enable_aa = true;
|
|
||||||
|
|
||||||
enum class ShadowFilter {
|
enum class ShadowFilter {
|
||||||
None,
|
None,
|
||||||
PCF,
|
PCF,
|
||||||
|
@ -21,20 +19,6 @@ enum class TonemapOperator {
|
||||||
AutoExposure = 2
|
AutoExposure = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(PLATFORM_TVOS) || defined(PLATFORM_IOS)
|
|
||||||
constexpr bool default_enable_ibl = false;
|
|
||||||
constexpr bool default_enable_normal_mapping = false;
|
|
||||||
constexpr bool default_enable_point_shadows = false;
|
|
||||||
constexpr ShadowFilter default_shadow_filter = ShadowFilter::PCF;
|
|
||||||
constexpr int default_shadow_resolution = 1024;
|
|
||||||
#else
|
|
||||||
constexpr bool default_enable_ibl = true;
|
|
||||||
constexpr bool default_enable_normal_mapping = true;
|
|
||||||
constexpr bool default_enable_point_shadows = true;
|
|
||||||
constexpr ShadowFilter default_shadow_filter = ShadowFilter::PCSS;
|
|
||||||
constexpr int default_shadow_resolution = 2048;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct RenderOptions {
|
struct RenderOptions {
|
||||||
DisplayColorSpace display_color_space = DisplayColorSpace::SRGB;
|
DisplayColorSpace display_color_space = DisplayColorSpace::SRGB;
|
||||||
TonemapOperator tonemapping = TonemapOperator::Linear;
|
TonemapOperator tonemapping = TonemapOperator::Linear;
|
||||||
|
@ -49,14 +33,14 @@ struct RenderOptions {
|
||||||
bool dynamic_resolution = false;
|
bool dynamic_resolution = false;
|
||||||
double render_scale = 1.0f;
|
double render_scale = 1.0f;
|
||||||
|
|
||||||
int shadow_resolution = default_shadow_resolution;
|
int shadow_resolution = 2048;
|
||||||
|
|
||||||
bool enable_aa = default_enable_aa;
|
bool enable_aa = true;
|
||||||
bool enable_ibl = default_enable_ibl;
|
bool enable_ibl = true;
|
||||||
bool enable_normal_mapping = default_enable_normal_mapping;
|
bool enable_normal_mapping = true;
|
||||||
bool enable_normal_shadowing = false;
|
bool enable_normal_shadowing = false;
|
||||||
bool enable_point_shadows = default_enable_point_shadows;
|
bool enable_point_shadows = true;
|
||||||
ShadowFilter shadow_filter = default_shadow_filter;
|
ShadowFilter shadow_filter = ShadowFilter::PCSS;
|
||||||
bool enable_extra_passes = true;
|
bool enable_extra_passes = true;
|
||||||
bool enable_frustum_culling = true;
|
bool enable_frustum_culling = true;
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue