1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-21 14:57:09 +00:00

Implemented raster versions of bokeh shaders to replace broken gaussian implementation

This commit is contained in:
Bastiaan Olij
2021-07-29 17:43:17 +10:00
parent a98589a449
commit 07fd559478
9 changed files with 643 additions and 293 deletions

View File

@@ -483,6 +483,15 @@ private:
Blur blur[2]; //the second one starts from the first mipmap
struct WeightBuffers {
RID weight;
RID fb; // FB with both texture and weight
};
// 2 full size, 2 half size
WeightBuffers weight_buffers[4]; // Only used in raster
RID base_weight_fb; // base buffer for weight
struct Luminance {
Vector<RID> reduce;
RID current;