This project has moved and is read-only. For the latest updates, please go here.

Textures appear darker now

Jul 23, 2013 at 9:19 PM
This may or may not be specific to DirectXTK, but from what I can tell it may be. I imported a VS2012 project to VS2013, changed the library paths to the new 2013 version, and now my textures look very dark.

It could be something with my shaders, but I literally didn't touch any code, I just changed library paths.

Any ideas? Thanks!
Jul 23, 2013 at 9:45 PM
Did you have an older version of DirectXTK in use and then recently upgraded? There were some changes made to support using "_SRGB" formats when loading some non-DDS image file formats...
Jul 24, 2013 at 1:03 AM
Yep, I had the VS2012 version then upgraded to VS2013. I didn't change any code. What code do I need to change in order to support the new version? My only function call from DirectXTK is CreateWICTextureFromMemory, that's it.
Jul 24, 2013 at 1:13 AM
It is based on your content. In the May 30, 2013 or earlier releases of DirectXTK, if you loaded a JPEG, TIFF, or PNG with explicit 'sRGB' metadata set it was ignored. Now if the sRGB metadata is found, -and- the source format is R8G8B8A8_UNORM, B8G8R8A8_UNORM, or B8G8R8X8_UNORM then the function actually returns R8G8B8A8_UNORM_SRGB, B8G8R8A8_UNORM_SRGB, or B8G8R8X8_UNORM_SRGB.
Marked as answer by walbourn on 1/23/2014 at 11:27 PM