Game Development Community

DDS Swizzle (DXT5_NM)

by Jeremiah Fulbright · in Torque Game Engine Advanced · 09/18/2009 (12:20 am) · 3 replies

It seems theres portions of texturemanager code that handle swizzling a dxt5 texture, if it had to have a format change (basically).

I'm curious where the rest of the code is that would be responsible for handling the swizzling in shadergen/bumpfeature code

J

#1
09/18/2009 (1:27 am)
Actually I did find where it was being swizzled back for the shader, but ran into a bug that the LightNormMap texture was being swizzled, if the bump map was also being swizzled. This would lead to lighting being messed up (obviously)

#2
09/18/2009 (3:31 pm)
So it does. That's just silly. Logged.
#3
09/18/2009 (9:29 pm)
Our fix was to just not use expandNormalMap for that portion and instead just put back in the regular bumpmap shader code to generate, which in turn fixed it all