1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 21:35:24 +00:00

Make RenderingManager::configureAmbient do what it was intended to.

This commit is contained in:
AnyOldName3 2018-03-03 01:54:21 +00:00
parent 4acd9228ee
commit d6a7aec971

View File

@ -416,7 +416,7 @@ namespace MWRender
osg::Vec4f diffuse = SceneUtil::colourFromRGB(cell->mAmbi.mSunlight);
mSunLight->setDiffuse(diffuse);
mSunLight->setSpecular(diffuse);
mSunLight->setDirection(osg::Vec3f(1.f,-1.f,-1.f));
mSunLight->setPosition(osg::Vec4f(-1.f, 1.f, 1.f, 0.f));
}
void RenderingManager::setSunColour(const osg::Vec4f& diffuse, const osg::Vec4f& specular)