Use ACES tone mapping

This commit is contained in:
Simon Lübeß
2022-08-18 14:03:33 +02:00
parent 42e386a142
commit 0588a93ec4
2 changed files with 57 additions and 1 deletions
@@ -1,3 +1,5 @@
#include "ACES.hlsl"
Texture2D CameraTarget : register(t0);
SamplerState CameraTargetSampler : register(s0);
@@ -27,7 +29,9 @@ float4 PS(PS_IN input) : SV_TARGET
{
float4 rawColor = CameraTarget.Sample(CameraTargetSampler, input.TexCoord);
float3 color = rawColor.rgb / (rawColor.rgb + 1.0f);
// float3 color = rawColor.rgb / (rawColor.rgb + 1.0f);
float3 color = ACESFitted(rawColor.rgb);
return float4(color, 1);
}