Fix color grading issue with LUT texture used
This commit is contained in:
BIN
Content/Shaders/ColorGrading.flax
(Stored with Git LFS)
BIN
Content/Shaders/ColorGrading.flax
(Stored with Git LFS)
Binary file not shown.
@@ -243,7 +243,7 @@ float4 CombineLUTs(float2 uv, uint layerIndex)
|
|||||||
|
|
||||||
// Apply LDR LUT color grading
|
// 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;
|
float3 lutColor = SampleUnwrappedTexture3D(LutTexture, SamplerLinearClamp, uvw, 16).rgb;
|
||||||
color = lerp(color, lutColor, LutWeight);
|
color = lerp(color, lutColor, LutWeight);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user