Edited wiki page ApiDocumentation through web user interface.

This commit is contained in:
castano@gmail.com 2011-04-30 23:39:46 +00:00
parent 74bcc814e6
commit 2c4701533a

View File

@ -190,7 +190,9 @@ When the `alphaMode` is `AlphaMode_None` the alpha and color channels are proces
=== Gamma Correction ===
*TODO*: Explain why gamma correction is important. Filtering in linear space. Energy conservation. Etc.
For a good discussion about why gamma correction is important and why you should filter your images in linear space, read <a href="http://number-none.com/product/Mipmapping,%20Part%202/index.html">Jon Blow's Mipmapping article on the Inner Product</a>.
In order to process images that are not in linear space, and output images in the desired gamma space, NVTT allows you to specify the input and output gamma values with the following method:
{{{
void InputOptions::setGamma(float inputGamma, float outputGamma);
@ -202,8 +204,6 @@ By default, both the `inputGamma` and the `outputGamma` are set to 2.2. Gamma co
inputOptions.setGamma(1.0f, 1.0f);
}}}
Note, that using different values for `inputGamma` and `outputGamma` could result in quantization artifacts when the input components only have 8 bits (that is always the case in the current version).
=== Processing Normal Maps ===