This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline void | |
Bloom(bitmap Bitmap, | |
f32 LuminanceThreshold, | |
int Radius, f32 Sigma) | |
{ | |
// NOTE: An implementation of bloom, a glow artifact found in some | |
// real world photography. | |
bitmap BloomedAreas = CloneBitmap(Bitmap); | |
Threshold(BloomedAreas, LuminanceThreshold, ThresholdType_Chromatic); |