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:
commit
d60c0e21a6
21 changed files with 173 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue