Fix color grading issue with LUT texture used

This commit is contained in:
Wojtek Figat
2024-02-09 23:29:43 +01:00
parent 080202cf95
commit c646007882
2 changed files with 3 additions and 3 deletions

BIN
Content/Shaders/ColorGrading.flax (Stored with Git LFS)

Binary file not shown.

View File

@@ -243,7 +243,7 @@ float4 CombineLUTs(float2 uv, uint layerIndex)
// Apply LDR LUT color grading
{
float3 uvw = color * (15.0 / 16.0) + (0.5f / 16.0);
float3 uvw = saturate(color) * (15.0 / 16.0) + (0.5f / 16.0);
float3 lutColor = SampleUnwrappedTexture3D(LutTexture, SamplerLinearClamp, uvw, 16).rgb;
color = lerp(color, lutColor, LutWeight);
}