mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Allow changing the anisotropic filter level at run-time per Viewport
This commit is contained in:
parent
893bbdfde8
commit
6995b6a03e
21 changed files with 173 additions and 7 deletions
|
|
@ -65,6 +65,7 @@ public:
|
|||
float scaling_3d_scale = 1.0;
|
||||
float fsr_sharpness = 0.2f;
|
||||
float texture_mipmap_bias = 0.0f;
|
||||
RS::ViewportAnisotropicFiltering anisotropic_filtering_level = RenderingServer::VIEWPORT_ANISOTROPY_4X;
|
||||
bool fsr_enabled = false;
|
||||
uint32_t jitter_phase_count = 0;
|
||||
RS::ViewportUpdateMode update_mode = RenderingServer::VIEWPORT_UPDATE_WHEN_VISIBLE;
|
||||
|
|
@ -234,6 +235,7 @@ public:
|
|||
void viewport_set_scaling_3d_scale(RID p_viewport, float p_scaling_3d_scale);
|
||||
void viewport_set_fsr_sharpness(RID p_viewport, float p_sharpness);
|
||||
void viewport_set_texture_mipmap_bias(RID p_viewport, float p_mipmap_bias);
|
||||
void viewport_set_anisotropic_filtering_level(RID p_viewport, RS::ViewportAnisotropicFiltering p_anisotropic_filtering_level);
|
||||
|
||||
void viewport_set_update_mode(RID p_viewport, RS::ViewportUpdateMode p_mode);
|
||||
RS::ViewportUpdateMode viewport_get_update_mode(RID p_viewport) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue