mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Environment: Refactor code for readability + more
- Makes all boolean setters/getters consistent. - Fixes bug where `glow_hdr_bleed_scale` was not used. - Split CameraEffects to their own source file. - Reorder all Environment method and properties declarations, definitions and bindings to be consistent with each other and with the order of property bindings. - Bind missing enum values added with SDFGI. - Remove unused SDFGI enhance_ssr boolean. - Sync doc changes after SDFGI merge and other misc changes.
This commit is contained in:
parent
719609522a
commit
372136fe75
41 changed files with 1638 additions and 1453 deletions
|
@ -1995,6 +1995,10 @@ void RenderingServer::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(LIGHT_PARAM_TRANSMITTANCE_BIAS);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_MAX);
|
||||
|
||||
BIND_ENUM_CONSTANT(LIGHT_BAKE_DISABLED);
|
||||
BIND_ENUM_CONSTANT(LIGHT_BAKE_DYNAMIC);
|
||||
BIND_ENUM_CONSTANT(LIGHT_BAKE_STATIC);
|
||||
|
||||
BIND_ENUM_CONSTANT(LIGHT_OMNI_SHADOW_DUAL_PARABOLOID);
|
||||
BIND_ENUM_CONSTANT(LIGHT_OMNI_SHADOW_CUBE);
|
||||
|
||||
|
@ -2008,6 +2012,10 @@ void RenderingServer::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(REFLECTION_PROBE_UPDATE_ONCE);
|
||||
BIND_ENUM_CONSTANT(REFLECTION_PROBE_UPDATE_ALWAYS);
|
||||
|
||||
BIND_ENUM_CONSTANT(REFLECTION_PROBE_AMBIENT_DISABLED);
|
||||
BIND_ENUM_CONSTANT(REFLECTION_PROBE_AMBIENT_ENVIRONMENT);
|
||||
BIND_ENUM_CONSTANT(REFLECTION_PROBE_AMBIENT_COLOR);
|
||||
|
||||
BIND_ENUM_CONSTANT(DECAL_TEXTURE_ALBEDO);
|
||||
BIND_ENUM_CONSTANT(DECAL_TEXTURE_NORMAL);
|
||||
BIND_ENUM_CONSTANT(DECAL_TEXTURE_ORM);
|
||||
|
@ -2374,7 +2382,7 @@ RenderingServer::RenderingServer() {
|
|||
ProjectSettings::get_singleton()->set_custom_property_info("rendering/quality/ssao/quality", PropertyInfo(Variant::INT, "rendering/quality/ssao/quality", PROPERTY_HINT_ENUM, "Low (Fast),Medium (Average),High (Slow),Ultra (Slower)"));
|
||||
GLOBAL_DEF("rendering/quality/ssao/half_size", false);
|
||||
|
||||
GLOBAL_DEF("rendering/quality/screen_filters/screen_space_roughness_limiter_enable", true);
|
||||
GLOBAL_DEF("rendering/quality/screen_filters/screen_space_roughness_limiter_enabled", true);
|
||||
GLOBAL_DEF("rendering/quality/screen_filters/screen_space_roughness_limiter_amount", 0.25);
|
||||
GLOBAL_DEF("rendering/quality/screen_filters/screen_space_roughness_limiter_limit", 0.18);
|
||||
ProjectSettings::get_singleton()->set_custom_property_info("rendering/quality/screen_filters/screen_space_roughness_limiter_amount", PropertyInfo(Variant::FLOAT, "rendering/quality/screen_filters/screen_space_roughness_limiter_amount", PROPERTY_HINT_RANGE, "0.01,4.0,0.01"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue