I use 127.5f as flat color. xNormal works insternally using floating point. But, at the end, if you use a 8bits format like BMP or TGA then I convert it in this way: Vector l_vN ( 0.0f, 0.0f, 1.0f ); unsigned char r, g, b; r = static_cast<unsigned char>(l_vN.x*0.5f+0.5f); g = static_cast<unsigned char>(l_vN.y*0.5f+0.5f); b…