1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Allow changing the anisotropic filter level at run-time per Viewport

This commit is contained in:
Wagner
2024-11-30 00:50:45 -03:00
parent 893bbdfde8
commit 6995b6a03e
21 changed files with 173 additions and 7 deletions

View File

@@ -2852,6 +2852,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) {