mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-11 16:25:41 +00:00
Implement more rendering options as specialization constants
* Shadow quality settings now specialization constant. * Decal and light projector filters can be set. * Changing those settings forces re-creation of the pipelines. These changes should help improve performance related to shadow mapping, and allows improving performance by sacrificing decal and light projector quality.
This commit is contained in:
@@ -508,6 +508,9 @@ void EditorNode::_update_from_settings() {
|
||||
|
||||
float lod_threshold = GLOBAL_GET("rendering/mesh_lod/lod_change/threshold_pixels");
|
||||
scene_root->set_lod_threshold(lod_threshold);
|
||||
|
||||
RS::get_singleton()->decals_set_filter(RS::DecalFilter(int(GLOBAL_GET("rendering/textures/decals/filter"))));
|
||||
RS::get_singleton()->light_projectors_set_filter(RS::LightProjectorFilter(int(GLOBAL_GET("rendering/textures/light_projectors/filter"))));
|
||||
}
|
||||
|
||||
void EditorNode::_notification(int p_what) {
|
||||
|
||||
Reference in New Issue
Block a user