Merge pull request #50618 from reduz/implement-more-specialization-constants

Implement more rendering options as specialization constants
This commit is contained in:
Rémi Verschelde 2021-07-20 08:54:21 +02:00 committed by GitHub
commit 1ba87f0c82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 574 additions and 142 deletions

View file

@ -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) {