Сабж,
DWORD encodeVectorAsDWORDColor( D3DXVECTOR3* vVector )
{
DWORD dwRed = (DWORD)(127 * vVector->x + 128);
DWORD dwGreen = (DWORD)(127 * vVector->y + 128);
DWORD dwBlue = (DWORD)(127 * vVector->z + 128);
return (DWORD)(0xff000000 + (dwRed << 16) + (dwGreen << 8) + dwBlue);
}
буду очень признателен...