Merge pull request #88313 from wagnerfs/run-time-anisotropic-filtering

Allow changing the anisotropic filter level at run-time per Viewport
This commit is contained in:
Rémi Verschelde 2024-12-17 16:18:38 +01:00
commit d60c0e21a6
No known key found for this signature in database
GPG key ID: C3336907360768E1
21 changed files with 173 additions and 7 deletions

View file

@ -2880,6 +2880,9 @@ void Node3DEditorViewport::_project_settings_changed() {
const float texture_mipmap_bias = GLOBAL_GET("rendering/textures/default_filters/texture_mipmap_bias");
viewport->set_texture_mipmap_bias(texture_mipmap_bias);
const Viewport::AnisotropicFiltering anisotropic_filtering_level = Viewport::AnisotropicFiltering(int(GLOBAL_GET("rendering/textures/default_filters/anisotropic_filtering_level")));
viewport->set_anisotropic_filtering_level(anisotropic_filtering_level);
}
void Node3DEditorViewport::_notification(int p_what) {