Changeset 374 for trunk/src/engine/particle_engine.cc
- Timestamp:
- 05/26/15 17:35:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/particle_engine.cc
r365 r374 7 7 #include <nv/interface/device.hh> 8 8 #include <nv/core/random.hh> 9 #include <nv/stl/utility.hh> 9 10 #include <nv/lua/lua_glm.hh> 10 11 #include <nv/core/logging.hh> 11 #include <cmath>12 12 13 13 static const char *nv_particle_engine_vertex_shader_world = … … 203 203 if ( datap->average ) 204 204 { 205 float norm_factor = glm::min( factor, 1.0f );205 float norm_factor = nv::min( factor, 1.0f ); 206 206 for ( uint32 i = 0; i < count; ++i ) 207 207 p[i].velocity = datap->force_vector * norm_factor + p[i].velocity * ( 1.0f - norm_factor ); … … 696 696 { 697 697 info->count--; 698 s td::swap( info->particles[i], info->particles[info->count] );698 swap( info->particles[i], info->particles[info->count] ); 699 699 } 700 700 }
Note: See TracChangeset
for help on using the changeset viewer.