Implement auto-contrast, not yet working for 32 bit fp textures