CheapContrast、CheapContrast_RGB

简易实现的对比度调节

原理:

HLSL
// 简易实现的对比度调节
// float In        输入
// float Constrast 对比度
Out = Lerp(-Constrast, Constrast + 1.0, In)
Out = Clamp(Out, 0.0, 1.0);

: Cheyne Xie

: https://chaim.eu.org/posts/898e20ab/

: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.