相当于一个Overlay一样的二维的平面, 不过是把它放到开始渲染, 放在模型后面
Ogre::Rectangle2D *rect3d = new Ogre::Rectangle2D(true);
rect3d->setCorners(-1.0f, 1.0f, 1.0f, -1.0f);
rect3d->setMaterial("Examples/OgreLogo");
MaterialPtr material=MaterialManager::getSingleton().getByName("Examples/OgreLogo");
material->getTechnique(0)->getPass(0)->setDepthCheckEnabled(false);
material->getTechnique(0)->getPass(0)->setDepthWriteEnabled(false);
rect3d->setRenderQueueGroup(RENDER_QUEUE_SKIES_EARLY+1);
rect3d->setBoundingBox(Ogre::AxisAlignedBox(-100000.0*Ogre::Vector3::UNIT_SCALE, 100000.0*Ogre::Vector3::UNIT_SCALE));
Ogre::SceneNode* node = mSceneMgr->getRootSceneNode()->createChildSceneNode("GridSN");
node->attachObject(rect3d);