Ignore:
Timestamp:
07/03/08 17:52:45 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp

    r2800 r2811  
    171171        } 
    172172        else 
     173        { 
    173174                texcoords = NULL; 
     175        } 
     176 
     177        for (int i = 0; i < vertexCount; i += 3) 
     178        { 
     179                Triangle3 tri(vertices[i], vertices[i + 1], vertices[i + 2]); 
     180                Vector3 n = tri.GetNormal(); 
     181                normals[i + 0] = n; 
     182                normals[i + 1] = n; 
     183                normals[i + 2] = n; 
     184        } 
    174185 
    175186        return new Geometry(vertices, normals, texcoords, vertexCount, true); 
Note: See TracChangeset for help on using the changeset viewer.