From 2c4701533a1371aa47c4560110f83037a6a452cd Mon Sep 17 00:00:00 2001 From: "castano@gmail.com" Date: Sat, 30 Apr 2011 23:39:46 +0000 Subject: [PATCH] Edited wiki page ApiDocumentation through web user interface. --- wiki/ApiDocumentation.wiki | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wiki/ApiDocumentation.wiki b/wiki/ApiDocumentation.wiki index 51db931..f62b9bf 100644 --- a/wiki/ApiDocumentation.wiki +++ b/wiki/ApiDocumentation.wiki @@ -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 Jon Blow's Mipmapping article on the Inner Product. + +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 ===