Changeset 451 for trunk/src/formats/md3_loader.cc
- Timestamp:
- 07/30/15 19:47:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/md3_loader.cc
r431 r451 240 240 if ( !s_normal_ready ) 241 241 { 242 float pi = glm::pi<float>();242 float pi = math::pi<float>(); 243 243 float convert = (2 * pi) / 255.0f; 244 244 int n = 0; … … 246 246 { 247 247 float flat = lat * convert; 248 float sin_lat = glm::sin( flat );249 float cos_lat = glm::cos( flat );248 float sin_lat = math::sin( flat ); 249 float cos_lat = math::cos( flat ); 250 250 for ( int lng = 0; lng < 256; ++lng, ++n ) 251 251 { 252 252 float flng = lng * convert; 253 float sin_lng = glm::sin( flng );254 float cos_lng = glm::cos( flng );253 float sin_lng = math::sin( flng ); 254 float cos_lng = math::cos( flng ); 255 255 s_normal_cache[n].x = cos_lat * sin_lng; 256 256 // s_normal_cache[n].y = sin_lat * sin_lng;
Note: See TracChangeset
for help on using the changeset viewer.