Skip to content

Commit

Permalink
Fix reverse HLG transform
Browse files Browse the repository at this point in the history
The +b needs to happen outside of the exp() call to be the reverse of the original HLG.
  • Loading branch information
benjamin-otte authored and svgeesus committed Jul 25, 2024
1 parent f6821cf commit 5ea4a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion css-color-hdr/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ Predefined color spaces for HDR: {#predefined-HDR}
E = (Edash ** 2) / 3;
}
else {
E = Math.exp(((Edash - c) / a) + b) / 12;
E = (Math.exp((Edash - c) / a) + b) / 12;
}
</pre>

Expand Down

0 comments on commit 5ea4a27

Please sign in to comment.