Added osg::FrameStamp::set/getSimulationTime().
Added setting of osg_SimulationTime and osg_DeltaSimulationTime to the uniforms set by SceneView Added frame(double simulationTime) and advance(double simulationTime) parameters to osgViewer::SimpleViewer, Vewer and CompositeViewer. Updated various examples and Nodes to use SimulationTime where appropriate.
This commit is contained in:
@@ -127,7 +127,7 @@ class AnimateStateCallback : public osg::NodeCallback
|
||||
if (stateset && nv->getFrameStamp())
|
||||
{
|
||||
// we have an exisitng stateset, so lets animate it.
|
||||
animateState(stateset,nv->getFrameStamp()->getReferenceTime());
|
||||
animateState(stateset,nv->getFrameStamp()->getSimulationTime());
|
||||
}
|
||||
|
||||
// note, callback is repsonsible for scenegraph traversal so
|
||||
|
||||
Reference in New Issue
Block a user