Changeset 10827 for OpenSceneGraph/trunk/src/osgParticle/Particle.cpp
- Timestamp:
- 11/24/09 16:00:11 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgParticle/Particle.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgParticle/Particle.cpp
r10660 r10827 46 46 _s_tile(1.0f), 47 47 _t_tile(1.0f), 48 _num_tile(1), 48 _start_tile(0), 49 _end_tile(0), 49 50 _cur_tile(-1), 50 51 _s_coord(0.0f), … … 80 81 81 82 //Compute the current texture tile based on our normalized age 82 int currentTile = static_cast<int>(x * _num_tile);83 int currentTile = _start_tile + static_cast<int>(x * getNumTiles()); 83 84 84 85 //If the current texture tile is different from previous, then compute new texture coords
