2021-07-20 13:40:16 +02:00
|
|
|
#define FLAG_HORIZONTAL (1 << 0)
|
|
|
|
#define FLAG_USE_ORTHOGONAL_PROJECTION (1 << 1)
|
|
|
|
#define FLAG_GLOW_FIRST_PASS (1 << 2)
|
|
|
|
|
2022-02-11 18:40:24 +01:00
|
|
|
layout(push_constant, std430) uniform Blur {
|
2021-07-20 13:40:16 +02:00
|
|
|
vec2 pixel_size;
|
|
|
|
uint flags;
|
|
|
|
uint pad;
|
|
|
|
|
|
|
|
// Glow.
|
|
|
|
float glow_strength;
|
|
|
|
float glow_bloom;
|
|
|
|
float glow_hdr_threshold;
|
|
|
|
float glow_hdr_scale;
|
|
|
|
|
|
|
|
float glow_exposure;
|
|
|
|
float glow_white;
|
|
|
|
float glow_luminance_cap;
|
|
|
|
float glow_auto_exposure_grey;
|
|
|
|
}
|
|
|
|
blur;
|