Changeset 5404 for nanovis/trunk
- Timestamp:
- May 4, 2015 3:52:34 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/trunk/ParticleRenderer.cpp
r3631 r5404 129 129 130 130 memset(_data, 0, sizeof(Particle) * _psysWidth * _psysHeight); 131 131 132 132 bool hasParticle; 133 133 for (int i = 0; i < _psysWidth; i++) { … … 135 135 Particle *p = &_data[i + _psysHeight*j]; 136 136 hasParticle = (rand() % 256) > 150; 137 137 if (hasParticle) { 138 138 //assign any location (x,y,z) in range [0,1] 139 139 switch (_sliceAxis) {
Note: See TracChangeset
for help on using the changeset viewer.