You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user