Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/eevee_bloom.c
| Show First 20 Lines • Show All 232 Lines • ▼ Show 20 Lines | if ((effects->enabled_effects & EFFECT_BLOOM) != 0) { | ||||
| * Repeat Repeat | * Repeat Repeat | ||||
| * ─── ─── | * ─── ─── | ||||
| * v | | * v | | ||||
| * Color Downsampled [1/N-1] ──────────> + Accumulation Buffer [1/N-1] | * Color Downsampled [1/N-1] ──────────> + Accumulation Buffer [1/N-1] | ||||
| * | Λ | * | Λ | ||||
| * [Downsample] [Upsample] | * [Downsample] [Upsample] | ||||
| * v | | * v | | ||||
| * Color Downsampled [1/N] ─────────────────────────┘ | * Color Downsampled [1/N] ─────────────────────────┘ | ||||
| **/ | */ | ||||
| DRWShadingGroup *grp; | DRWShadingGroup *grp; | ||||
| const bool use_highres = true; | const bool use_highres = true; | ||||
| const bool use_antiflicker = true; | const bool use_antiflicker = true; | ||||
| eevee_create_bloom_pass("Bloom Downsample First", effects, e_data.bloom_downsample_sh[use_antiflicker], &psl->bloom_downsample_first, false); | eevee_create_bloom_pass("Bloom Downsample First", effects, e_data.bloom_downsample_sh[use_antiflicker], &psl->bloom_downsample_first, false); | ||||
| eevee_create_bloom_pass("Bloom Downsample", effects, e_data.bloom_downsample_sh[0], &psl->bloom_downsample, false); | eevee_create_bloom_pass("Bloom Downsample", effects, e_data.bloom_downsample_sh[0], &psl->bloom_downsample, false); | ||||
| eevee_create_bloom_pass("Bloom Upsample", effects, e_data.bloom_upsample_sh[use_highres], &psl->bloom_upsample, true); | eevee_create_bloom_pass("Bloom Upsample", effects, e_data.bloom_upsample_sh[use_highres], &psl->bloom_upsample, true); | ||||
| grp = eevee_create_bloom_pass("Bloom Blit", effects, e_data.bloom_blit_sh[use_antiflicker], &psl->bloom_blit, false); | grp = eevee_create_bloom_pass("Bloom Blit", effects, e_data.bloom_blit_sh[use_antiflicker], &psl->bloom_blit, false); | ||||
| ▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines | |||||