Skip to content

Commit

Permalink
Fix color grading issue with LUT texture used
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiesto4 committed Feb 9, 2024
1 parent 080202c commit c646007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Content/Shaders/ColorGrading.flax
Git LFS file not shown
2 changes: 1 addition & 1 deletion Source/Shaders/ColorGrading.shader
Expand Up @@ -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);
}
Expand Down

0 comments on commit c646007

Please sign in to comment.