mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Composit Target and gamma correct rendering
This commit is contained in:
@@ -28,9 +28,7 @@ float4 PS(PS_IN input) : SV_TARGET
|
||||
float4 rawColor = CameraTarget.Sample(CameraTargetSampler, input.TexCoord);
|
||||
|
||||
float3 color = rawColor.rgb / (rawColor.rgb + 1.0f);
|
||||
|
||||
color = pow(color, 1.0f / 2.2f);
|
||||
|
||||
|
||||
return float4(color, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user