diff --git a/examples/osgshadow/osgshadow.cpp b/examples/osgshadow/osgshadow.cpp index 1b49677a1..e3f020e74 100644 --- a/examples/osgshadow/osgshadow.cpp +++ b/examples/osgshadow/osgshadow.cpp @@ -212,7 +212,7 @@ int main(int argc, char** argv) group->addChild(model.get()); osg::ref_ptr geode = new osg::Geode; - occluder->comptueShadowVolumeGeometry(lightpos, *shadowVolume); + occluder->computeShadowVolumeGeometry(lightpos, *shadowVolume); geode->addDrawable(shadowVolume.get()); group->addChild(geode.get()); @@ -265,7 +265,7 @@ int main(int argc, char** argv) { osg::ref_ptr geode = new osg::Geode; - occluder->comptueShadowVolumeGeometry(lightpos, *shadowVolume); + occluder->computeShadowVolumeGeometry(lightpos, *shadowVolume); geode->addDrawable(shadowVolume.get()); // switch off the writing to the color bit planes. @@ -289,7 +289,7 @@ int main(int argc, char** argv) if (true) { osg::ref_ptr geode = new osg::Geode; - occluder->comptueShadowVolumeGeometry(lightpos, *shadowVolume); + occluder->computeShadowVolumeGeometry(lightpos, *shadowVolume); geode->addDrawable(shadowVolume.get()); // switch off the writing to the color bit planes. @@ -374,7 +374,7 @@ int main(int argc, char** argv) lightpos.set(sinf(t),cosf(t),0.8f,0.0f); } light->setPosition(lightpos); - occluder->comptueShadowVolumeGeometry(lightpos, *shadowVolume); + occluder->computeShadowVolumeGeometry(lightpos, *shadowVolume); } // update the scene by traversing it with the the update visitor which will diff --git a/include/osgShadow/OccluderGeometry b/include/osgShadow/OccluderGeometry index 44a6955a0..bed45c168 100644 --- a/include/osgShadow/OccluderGeometry +++ b/include/osgShadow/OccluderGeometry @@ -52,7 +52,7 @@ class OSGSHADOW_EXPORT OccluderGeometry : public osg::Drawable /** Compute ShadowVolumeGeometry. */ - void comptueShadowVolumeGeometry(const osg::Vec4& lightpos, ShadowVolumeGeometry& svg) const; + void computeShadowVolumeGeometry(const osg::Vec4& lightpos, ShadowVolumeGeometry& svg) const; /** Set the bounding polytope of the OccluderGeometry.*/ diff --git a/src/osgShadow/OccluderGeometry.cpp b/src/osgShadow/OccluderGeometry.cpp index 7fdf6bd0e..09cf60ea4 100644 --- a/src/osgShadow/OccluderGeometry.cpp +++ b/src/osgShadow/OccluderGeometry.cpp @@ -738,7 +738,7 @@ void OccluderGeometry::computeLightPositionSlihouetteEdges(const osg::Vec3& ligh } -void OccluderGeometry::comptueShadowVolumeGeometry(const osg::Vec4& lightpos, ShadowVolumeGeometry& svg) const +void OccluderGeometry::computeShadowVolumeGeometry(const osg::Vec4& lightpos, ShadowVolumeGeometry& svg) const { osg::Timer_t t0 = osg::Timer::instance()->tick(); @@ -881,7 +881,7 @@ void OccluderGeometry::comptueShadowVolumeGeometry(const osg::Vec4& lightpos, Sh svg.dirtyBound(); osg::Timer_t t1 = osg::Timer::instance()->tick(); - osg::notify(osg::NOTICE)<<"comptueShadowVolumeGeometry "<delta_m(t0,t1)<<" ms"<delta_m(t0,t1)<<" ms"<