// Subtract out dark pixels
sample.rgb -= g_BrightPassThreshold;
// Clamp to 0
sample = max(sample, 0.0f);
These are straight copy from the DX sdk. But in the case of LDR, the subtracting step is a significant change to the rgb ratios in the original sample color, which causes the color of the bloom to be incorrect. Is there any good way to do this for LDR?
sample.rgb -= g_BrightPassThreshold;
// Clamp to 0
sample = max(sample, 0.0f);
These are straight copy from the DX sdk. But in the case of LDR, the subtracting step is a significant change to the rgb ratios in the original sample color, which causes the color of the bloom to be incorrect. Is there any good way to do this for LDR?