Replaced frame delta computation that was originally based on a local static variable, replacing it with member variable to tracking the previous frame time. This fixes a bug in the wind computation when multiple PrecipitaionEffects are in the scene.
This commit is contained in:
@@ -256,6 +256,8 @@ namespace osgParticle
|
||||
osg::Vec3 _inverse_dv;
|
||||
osg::Vec3 _inverse_dw;
|
||||
|
||||
double _previousFrameTime;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user