Add UseAlpha to RenderBuffers for pass-though renderer with alpha channel

This commit is contained in:
Wojtek Figat
2022-08-01 22:58:22 +02:00
parent fe1cab6a7f
commit a6e9abfceb
14 changed files with 136 additions and 107 deletions

View File

@@ -90,7 +90,7 @@ float4 PS_ApplyLuminance(Quad_VS2PS input) : SV_Target
{
float averageLuminance = AverageLuminance.Load(int3(0, 0, 0)).x;
float exposure = 1.0f / averageLuminance;
return (PreExposure * exposure).xxxx;
return float4((PreExposure * exposure).xxx, 1);
}
#endif