]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/colorcurve.h
Update and improve documentation
[libs/gl.git] / source / effects / colorcurve.h
index 5cebcb00835e818fe2b44a303928b2b502c149f4..99263407d965bccaea891025a8ef7df035f67dea 100644 (file)
@@ -11,9 +11,12 @@ namespace GL {
 class Program;
 
 /**
-Processes oversaturated colors to preserve hues.  When one color component
-exceeds 1.0, the overflow is distributed to the other components, scaling the
-color towards white.
+Maps high dynamic range colors to 8-bit and applies gamma correction.
+
+An exponential curve (with exponent less than or equal to 1) is applied to
+simulate the response of the human eye.  If the maximum color component of the
+result exceeds 1, the overflow is distributed to the other components to
+increase the apparent brightness without changing the hue.
 
 Gamma or sRGB correction can also be applied to the output.  It can be used to
 improve color reproduction by performing lighting calculations in linear color