By default, both the `inputGamma` and the `outputGamma` are set to 2.2. Gamma correction is only applied to the RGB channels. It's not applied to the alpha channel and it's never applied to normal maps. You can disable gamma correction by setting these values to 1.0 as follows:
@ -230,16 +250,18 @@ virtual void mipmap(int size, int width, int height, int depth, int face, int mi
virtual void writeData(const void * data, int size) = 0;
}}}
Applications need to implement this interface in order to receive compressed data from nvtt::compress.
Applications need to implement this interface in order to receive compressed data from `nvtt::compress`.
Calls
*TODO*
In order to minimize memory allocations NVTT will call writeData as soon as compressed data is available. Some compressors output one block at a time, while others output many.
=== Producing DDS Files ===
nvtt::compress will call writeData before indicating the image that the data belong to.
*TODO*
`nvtt::compress` will call writeData before indicating the image that the data belong to.