diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-20 08:54:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 08:54:21 +0200 |
commit | 1ba87f0c82ca62deaba71767ed08270a45fac2e9 (patch) | |
tree | f5521b55687dd714ba80af098376fb3de1d323b8 /editor | |
parent | a09088ac8fb4cb50e2269d4769e4eedf2731df49 (diff) | |
parent | 9293bc3935c3b87051003dcb8f6902d6f1e9fdbe (diff) |
Merge pull request #50618 from reduz/implement-more-specialization-constants
Implement more rendering options as specialization constants
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index e18535a28c..6bdf428f81 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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) { |