本文整理汇总了C++中ogre::Camera::disableReflection方法的典型用法代码示例。如果您正苦于以下问题:C++ Camera::disableReflection方法的具体用法?C++ Camera::disableReflection怎么用?C++ Camera::disableReflection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ogre::Camera
的用法示例。
在下文中一共展示了Camera::disableReflection方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: postRenderTargetUpdate
void ReflectionTextureListener::postRenderTargetUpdate(const RenderTargetEvent& evt)
{
// Show plane and objects below the water
mWater->setVisible(true);
std::vector<Ogre::MovableObject*>::iterator i, iend;
iend = belowWaterEnts.end();
for (i = belowWaterEnts.begin(); i != iend; ++i)
{
(*i)->setVisible(true);
}
belowWaterEnts.clear();
/*Ogre::SceneManager::MovableObjectIterator it = Level::getSingleton()->getSceneManager()->getMovableObjectIterator("Entity");
while(it.hasMoreElements()){
Ogre::MovableObject *m = it.getNext();
if (m->getParentSceneNode()->_getDerivedPosition().y < mWater->getSceneNode()->_getDerivedPosition().y){
m->setVisible(true);
}
}*/
Ogre::Camera* cam = Level::getSingleton()->getCurrentSegment()->getActiveCamera()->getCamera();
cam->disableReflection();
}
示例2: postRenderTargetUpdate
void postRenderTargetUpdate(const RenderTargetEvent& evt)
{
// Show plane and objects below the water
pPlaneEnt->setVisible(true);
std::vector<Entity*>::iterator i, iend;
iend = belowWaterEnts.end();
for (i = belowWaterEnts.begin(); i != iend; ++i) {
(*i)->setVisible(true);
}
theCam->disableReflection();
}