Changeset 1298 for trunk/packages/vizservers/nanovis/NvParticleRenderer.cpp
- Timestamp:
- Mar 7, 2009, 1:38:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/NvParticleRenderer.cpp
r1111 r1298 28 28 29 29 NvParticleRenderer::NvParticleRenderer(int w, int h, CGcontext context) 30 : scale(1, 1, 1), _activate(false) 30 : scale(1, 1, 1), _activate(false), origin(0, 0, 0) 31 31 { 32 32 psys_width = w; … … 261 261 glPushMatrix(); 262 262 263 glTranslatef(origin.x, origin.y, origin.z); 263 264 glScaled(scale.x, scale.y, scale.z); 264 265 … … 275 276 } 276 277 277 void NvParticleRenderer::setVectorField(unsigned int texID, float scaleX, float scaleY, float scaleZ, float max) 278 { 278 void NvParticleRenderer::setVectorField(unsigned int texID, const Vector3& ori, float scaleX, float scaleY, float scaleZ, float max) 279 { 280 origin = ori; 279 281 scale.set(scaleX, scaleY, scaleZ); 280 282 _advectionShader->setScale(scale);
Note: See TracChangeset
for help on using the changeset viewer.