Page 1 of 1

Gamma on cubic texture

Posted: Fri Nov 26, 2010 2:40 am
by bleubleu
When adding a "cubic_texture" to a texture unit state in a material script, the "gamma" keyword is not supported (it is on regular 2d textures). Most HW does support to de-gamma of cube maps on read. I think its possible right now to enable it by code by doing tus->setHardwareGammaEnabled(true), but it must be called BEFORE the texture is loaded, which is tricky...