1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Add screen space AA option, with FXAA implementation.

This commit is contained in:
Juan Linietsky
2020-04-12 01:49:10 -03:00
parent 9dc19f7619
commit 16ae2cc1bf
15 changed files with 144 additions and 10 deletions

View File

@@ -170,6 +170,10 @@ class RasterizerEffectsRD {
float exposure;
float white;
float auto_exposure_grey;
float pixel_size[2];
uint32_t use_fxaa;
uint32_t pad;
};
/* tonemap actually writes to a framebuffer, which is
@@ -595,6 +599,9 @@ public:
bool use_color_correction = false;
RID color_correction_texture;
bool use_fxaa = false;
Vector2i texture_size;
};
void tonemapper(RID p_source_color, RID p_dst_framebuffer, const TonemapSettings &p_settings);