summaryrefslogtreecommitdiff
path: root/src/libs/ray/ray_gamma.c
AgeCommit message (Collapse)Author
2019-11-13ray: add rudimentary gamma correctionVito Caputo
color banding has been quite visible, and somewhat expected with a direct conversion from the linear float color space to the 8-bit integral rgb color components. A simple lookup table is used here to non-linearly map the values, table generation is taken from Greg Ward's REAL PIXELS gem in Graphics Gems II.
© All Rights Reserved