void CSVRender::UnpagedWorldspaceWidget::update() { const CSMWorld::Record<CSMWorld::Cell>& record = dynamic_cast<const CSMWorld::Record<CSMWorld::Cell>&> (mCellsModel->getRecord (mCellId)); Ogre::ColourValue colour; colour.setAsABGR (record.get().mAmbi.mAmbient); setDefaultAmbient (colour); /// \todo deal with mSunlight and mFog/mForDensity }
void CSVRender::UnpagedWorldspaceWidget::update() { const CSMWorld::Record<CSMWorld::Cell>& record = dynamic_cast<const CSMWorld::Record<CSMWorld::Cell>&> (mCellsModel->getRecord (mCellId)); osg::Vec4f colour = SceneUtil::colourFromRGB(record.get().mAmbi.mAmbient); setDefaultAmbient (colour); /// \todo deal with mSunlight and mFog/mForDensity flagAsModified(); }