mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Add support for contrast-adaptive sharpening in 3D (GLES3 only)
This is an older, easier to implement variant of CAS as a pure fragment shader. It doesn't support upscaling, but we won't make use of it (at least for now). The sharpening intensity can be adjusted on a per-Viewport basis. For the root viewport, it can be adjusted in the Project Settings. Since `textureLodOffset()` isn't available in GLES2, there is no way to support contrast-adaptive sharpening in GLES2.
This commit is contained in:
parent
296608460b
commit
a9c0c5484f
23 changed files with 159 additions and 6 deletions
|
|
@ -2441,6 +2441,9 @@ void SpatialEditorViewport::_notification(int p_what) {
|
|||
bool use_debanding = ProjectSettings::get_singleton()->get("rendering/quality/filters/use_debanding");
|
||||
viewport->set_use_debanding(use_debanding);
|
||||
|
||||
float sharpen_intensity = ProjectSettings::get_singleton()->get("rendering/quality/filters/sharpen_intensity");
|
||||
viewport->set_sharpen_intensity(sharpen_intensity);
|
||||
|
||||
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