mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 11:14:17 +00:00
Add fast approximate antialiasing (FXAA) to Viewport
This backports FXAA from the `master` branch. Co-authored-by: Clay John <claynjohn@gmail.com>
This commit is contained in:
parent
eefb417614
commit
af45c97652
25 changed files with 340 additions and 125 deletions
|
|
@ -2483,6 +2483,9 @@ void SpatialEditorViewport::_notification(int p_what) {
|
|||
int msaa_mode = ProjectSettings::get_singleton()->get("rendering/quality/filters/msaa");
|
||||
viewport->set_msaa(Viewport::MSAA(msaa_mode));
|
||||
|
||||
bool use_fxaa = ProjectSettings::get_singleton()->get("rendering/quality/filters/use_fxaa");
|
||||
viewport->set_use_fxaa(use_fxaa);
|
||||
|
||||
bool hdr = ProjectSettings::get_singleton()->get("rendering/quality/depth/hdr");
|
||||
viewport->set_hdr(hdr);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue