X-Nico

unusual facts about pixel shader



S3 Texture Compression

id Software worked around the normalmap compression issues in Doom 3 by moving the red component into the alpha channel before compression and moving it back during rendering in the pixel shader.


see also