mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add FidelityFX Super Resolution 2.2 (FSR 2.2.1) support.
Introduces support for FSR2 as a new upscaler option available from the project settings. Also introduces an specific render list for surfaces that require motion and the ability to derive motion vectors from depth buffer and camera motion.
This commit is contained in:
parent
df0a822323
commit
057367bf4f
102 changed files with 22108 additions and 149 deletions
|
|
@ -63,6 +63,7 @@ public:
|
|||
float fsr_sharpness = 0.2f;
|
||||
float texture_mipmap_bias = 0.0f;
|
||||
bool fsr_enabled = false;
|
||||
uint32_t jitter_phase_count = 0;
|
||||
RS::ViewportUpdateMode update_mode = RenderingServer::VIEWPORT_UPDATE_WHEN_VISIBLE;
|
||||
RID render_target;
|
||||
RID render_target_texture;
|
||||
|
|
@ -203,6 +204,7 @@ public:
|
|||
private:
|
||||
Vector<Viewport *> _sort_active_viewports();
|
||||
void _viewport_set_size(Viewport *p_viewport, int p_width, int p_height, uint32_t p_view_count);
|
||||
bool _viewport_requires_motion_vectors(Viewport *p_viewport);
|
||||
void _configure_3d_render_buffers(Viewport *p_viewport);
|
||||
void _draw_3d(Viewport *p_viewport);
|
||||
void _draw_viewport(Viewport *p_viewport);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue