Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 737dee0

Browse files
committed
Fixed a slight color temperature offset when using HDR grading
1 parent 61e7d28 commit 737dee0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PostProcessing/Shaders/Colors.hlsl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,7 @@ float3 AcesTonemap(float3 aces)
454454
//
455455
half3 ApplyLut3D(TEXTURE3D_ARGS(tex, samplerTex), float3 uvw, float2 scaleOffset)
456456
{
457-
float shift = floor(uvw.z);
458-
uvw.xy = uvw.xy * scaleOffset.y * scaleOffset.xx + scaleOffset.xx * 0.5;
459-
uvw.x += shift * scaleOffset.x;
457+
uvw.xyz = uvw.xyz * scaleOffset.yyy * scaleOffset.xxx + scaleOffset.xxx * 0.5;
460458
return SAMPLE_TEXTURE3D(tex, samplerTex, uvw).rgb;
461459
}
462460

0 commit comments

Comments
 (0)