Fix normal map mipmap generation.

This commit is contained in:
castano
2007-05-18 02:19:51 +00:00
parent 5135f30d8e
commit de94fce1ce
13 changed files with 76 additions and 27 deletions

View File

@ -133,6 +133,8 @@ FloatImage * nv::createNormalMap(const Image * img, FloatImage::WrapMode wm, Vec
void nv::normalize(FloatImage * img)
{
nvCheck(img != NULL);
img->expandNormals(0);
img->normalize(0);
img->packNormals(0);
}