mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Automatically update the editor viewport when 3D scaling options are changed
This allows for previewing the effects of the various 3D scaling project settings without having to restart the editor.
This commit is contained in:
parent
4366f8bcd4
commit
2651e88b05
2 changed files with 16 additions and 4 deletions
|
@ -2934,10 +2934,10 @@ void RenderingServer::init() {
|
|||
ProjectSettings::get_singleton()->set_custom_property_info("rendering/anti_aliasing/screen_space_roughness_limiter/amount", PropertyInfo(Variant::FLOAT, "rendering/anti_aliasing/screen_space_roughness_limiter/amount", PROPERTY_HINT_RANGE, "0.01,4.0,0.01"));
|
||||
ProjectSettings::get_singleton()->set_custom_property_info("rendering/anti_aliasing/screen_space_roughness_limiter/limit", PropertyInfo(Variant::FLOAT, "rendering/anti_aliasing/screen_space_roughness_limiter/limit", PROPERTY_HINT_RANGE, "0.01,1.0,0.01"));
|
||||
|
||||
GLOBAL_DEF_RST("rendering/scaling_3d/mode", 0);
|
||||
GLOBAL_DEF_RST("rendering/scaling_3d/scale", 1.0);
|
||||
GLOBAL_DEF_RST("rendering/scaling_3d/fsr_sharpness", 0.2f);
|
||||
GLOBAL_DEF_RST("rendering/scaling_3d/fsr_mipmap_bias", 0.0f);
|
||||
GLOBAL_DEF("rendering/scaling_3d/mode", 0);
|
||||
GLOBAL_DEF("rendering/scaling_3d/scale", 1.0);
|
||||
GLOBAL_DEF("rendering/scaling_3d/fsr_sharpness", 0.2f);
|
||||
GLOBAL_DEF("rendering/scaling_3d/fsr_mipmap_bias", 0.0f);
|
||||
ProjectSettings::get_singleton()->set_custom_property_info("rendering/scaling_3d/mode",
|
||||
PropertyInfo(Variant::INT,
|
||||
"rendering/scaling_3d/mode",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue