Skip to content

Commit 5ea4a27

Browse files
benjamin-ottesvgeesus
authored andcommitted
Fix reverse HLG transform
The +b needs to happen outside of the exp() call to be the reverse of the original HLG.
1 parent f6821cf commit 5ea4a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-color-hdr/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ Predefined color spaces for HDR: {#predefined-HDR}
578578
E = (Edash ** 2) / 3;
579579
}
580580
else {
581-
E = Math.exp(((Edash - c) / a) + b) / 12;
581+
E = (Math.exp((Edash - c) / a) + b) / 12;
582582
}
583583
</pre>
584584

0 commit comments

Comments
 (0)