|
@@ -3471,15 +3471,15 @@ void RenderingServer::init() {
|
|
GLOBAL_DEF("rendering/shader_compiler/shader_cache/strip_debug", false);
|
|
GLOBAL_DEF("rendering/shader_compiler/shader_cache/strip_debug", false);
|
|
GLOBAL_DEF("rendering/shader_compiler/shader_cache/strip_debug.release", true);
|
|
GLOBAL_DEF("rendering/shader_compiler/shader_cache/strip_debug.release", true);
|
|
|
|
|
|
- GLOBAL_DEF_RST("rendering/reflections/sky_reflections/roughness_layers", 8); // Assumes a 256x256 cubemap
|
|
|
|
|
|
+ GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "rendering/reflections/sky_reflections/roughness_layers", PROPERTY_HINT_RANGE, "1,32,1"), 8); // Assumes a 256x256 cubemap
|
|
GLOBAL_DEF_RST("rendering/reflections/sky_reflections/texture_array_reflections", true);
|
|
GLOBAL_DEF_RST("rendering/reflections/sky_reflections/texture_array_reflections", true);
|
|
GLOBAL_DEF("rendering/reflections/sky_reflections/texture_array_reflections.mobile", false);
|
|
GLOBAL_DEF("rendering/reflections/sky_reflections/texture_array_reflections.mobile", false);
|
|
- GLOBAL_DEF_RST("rendering/reflections/sky_reflections/ggx_samples", 32);
|
|
|
|
- GLOBAL_DEF("rendering/reflections/sky_reflections/ggx_samples.mobile", 16);
|
|
|
|
|
|
+ GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "rendering/reflections/sky_reflections/ggx_samples", PROPERTY_HINT_RANGE, "0,256,1"), 32);
|
|
|
|
+ GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/reflections/sky_reflections/ggx_samples.mobile", PROPERTY_HINT_RANGE, "0,128,1"), 16);
|
|
GLOBAL_DEF("rendering/reflections/sky_reflections/fast_filter_high_quality", false);
|
|
GLOBAL_DEF("rendering/reflections/sky_reflections/fast_filter_high_quality", false);
|
|
- GLOBAL_DEF("rendering/reflections/reflection_atlas/reflection_size", 256);
|
|
|
|
- GLOBAL_DEF("rendering/reflections/reflection_atlas/reflection_size.mobile", 128);
|
|
|
|
- GLOBAL_DEF("rendering/reflections/reflection_atlas/reflection_count", 64);
|
|
|
|
|
|
+ GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/reflections/reflection_atlas/reflection_size", PROPERTY_HINT_RANGE, "0,4096,1"), 256);
|
|
|
|
+ GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/reflections/reflection_atlas/reflection_size.mobile", PROPERTY_HINT_RANGE, "0,2048,1"), 128);
|
|
|
|
+ GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/reflections/reflection_atlas/reflection_count", PROPERTY_HINT_RANGE, "0,256,1"), 64);
|
|
|
|
|
|
GLOBAL_DEF("rendering/global_illumination/gi/use_half_resolution", false);
|
|
GLOBAL_DEF("rendering/global_illumination/gi/use_half_resolution", false);
|
|
|
|
|
|
@@ -3526,7 +3526,7 @@ void RenderingServer::init() {
|
|
GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/textures/decals/filter", PROPERTY_HINT_ENUM, "Nearest (Fast),Linear (Fast),Nearest Mipmap (Fast),Linear Mipmap (Fast),Nearest Mipmap Anisotropic (Average),Linear Mipmap Anisotropic (Average)"), DECAL_FILTER_LINEAR_MIPMAPS);
|
|
GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/textures/decals/filter", PROPERTY_HINT_ENUM, "Nearest (Fast),Linear (Fast),Nearest Mipmap (Fast),Linear Mipmap (Fast),Nearest Mipmap Anisotropic (Average),Linear Mipmap Anisotropic (Average)"), DECAL_FILTER_LINEAR_MIPMAPS);
|
|
GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/textures/light_projectors/filter", PROPERTY_HINT_ENUM, "Nearest (Fast),Linear (Fast),Nearest Mipmap (Fast),Linear Mipmap (Fast),Nearest Mipmap Anisotropic (Average),Linear Mipmap Anisotropic (Average)"), LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS);
|
|
GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/textures/light_projectors/filter", PROPERTY_HINT_ENUM, "Nearest (Fast),Linear (Fast),Nearest Mipmap (Fast),Linear Mipmap (Fast),Nearest Mipmap Anisotropic (Average),Linear Mipmap Anisotropic (Average)"), LIGHT_PROJECTOR_FILTER_LINEAR_MIPMAPS);
|
|
|
|
|
|
- GLOBAL_DEF_RST("rendering/occlusion_culling/occlusion_rays_per_thread", 512);
|
|
|
|
|
|
+ GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "rendering/occlusion_culling/occlusion_rays_per_thread", PROPERTY_HINT_RANGE, "1,2048,1,or_greater"), 512);
|
|
|
|
|
|
GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/environment/glow/upscale_mode", PROPERTY_HINT_ENUM, "Linear (Fast),Bicubic (Slow)"), 1);
|
|
GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/environment/glow/upscale_mode", PROPERTY_HINT_ENUM, "Linear (Fast),Bicubic (Slow)"), 1);
|
|
GLOBAL_DEF("rendering/environment/glow/upscale_mode.mobile", 0);
|
|
GLOBAL_DEF("rendering/environment/glow/upscale_mode.mobile", 0);
|
|
@@ -3537,7 +3537,7 @@ void RenderingServer::init() {
|
|
GLOBAL_DEF(PropertyInfo(Variant::FLOAT, "rendering/environment/subsurface_scattering/subsurface_scattering_scale", PROPERTY_HINT_RANGE, "0.001,1,0.001"), 0.05);
|
|
GLOBAL_DEF(PropertyInfo(Variant::FLOAT, "rendering/environment/subsurface_scattering/subsurface_scattering_scale", PROPERTY_HINT_RANGE, "0.001,1,0.001"), 0.05);
|
|
GLOBAL_DEF(PropertyInfo(Variant::FLOAT, "rendering/environment/subsurface_scattering/subsurface_scattering_depth_scale", PROPERTY_HINT_RANGE, "0.001,1,0.001"), 0.01);
|
|
GLOBAL_DEF(PropertyInfo(Variant::FLOAT, "rendering/environment/subsurface_scattering/subsurface_scattering_depth_scale", PROPERTY_HINT_RANGE, "0.001,1,0.001"), 0.01);
|
|
|
|
|
|
- GLOBAL_DEF("rendering/limits/global_shader_variables/buffer_size", 65536);
|
|
|
|
|
|
+ GLOBAL_DEF(PropertyInfo(Variant::INT, "rendering/limits/global_shader_variables/buffer_size", PROPERTY_HINT_RANGE, "1,1048576,1"), 65536);
|
|
|
|
|
|
GLOBAL_DEF(PropertyInfo(Variant::FLOAT, "rendering/lightmapping/probe_capture/update_speed", PROPERTY_HINT_RANGE, "0.001,256,0.001"), 15);
|
|
GLOBAL_DEF(PropertyInfo(Variant::FLOAT, "rendering/lightmapping/probe_capture/update_speed", PROPERTY_HINT_RANGE, "0.001,256,0.001"), 15);
|
|
GLOBAL_DEF(PropertyInfo(Variant::FLOAT, "rendering/lightmapping/primitive_meshes/texel_size", PROPERTY_HINT_RANGE, "0.001,100,0.001"), 0.2);
|
|
GLOBAL_DEF(PropertyInfo(Variant::FLOAT, "rendering/lightmapping/primitive_meshes/texel_size", PROPERTY_HINT_RANGE, "0.001,100,0.001"), 0.2);
|