Skip to content

Commit 870ac31

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.0] Fix UUM-125596 AcesTonemap() half precision bug
1 parent 768bf4c commit 870ac31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Packages/com.unity.render-pipelines.core/ShaderLibrary

Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ float3 AcesTonemap(float3 aces)
651651

652652
// --- Red modifier --- //
653653
half hue = rgb_2_hue(half3(aces));
654-
half centeredHue = center_hue(hue, RRT_RED_HUE);
654+
float centeredHue = center_hue(hue, RRT_RED_HUE); // UUM-125596 Must be float for subsequent calculations
655655
float hueWeight;
656656
{
657657
//hueWeight = cubic_basis_shaper(centeredHue, RRT_RED_WIDTH);

0 commit comments

Comments
 (0)