mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-12 05:27:04 +03:00
Merge branch 'sunvisibility' into 'master'
Make sun specularity behavior more intuitive (bug #6190) Closes #6190 See merge request OpenMW/openmw!3535
This commit is contained in:
commit
231803c6ea
4 changed files with 10 additions and 7 deletions
|
@ -702,7 +702,7 @@ namespace MWRender
|
|||
{
|
||||
// need to wrap this in a StateUpdater?
|
||||
mSunLight->setDiffuse(diffuse);
|
||||
mSunLight->setSpecular(specular);
|
||||
mSunLight->setSpecular(osg::Vec4f(specular.x(), specular.y(), specular.z(), specular.w() * sunVis));
|
||||
|
||||
mPostProcessor->getStateUpdater()->setSunColor(diffuse);
|
||||
mPostProcessor->getStateUpdater()->setSunVis(sunVis);
|
||||
|
|
|
@ -789,8 +789,7 @@ namespace MWWorld
|
|||
mRendering.configureFog(
|
||||
mResult.mFogDepth, underwaterFog, mResult.mDLFogFactor, mResult.mDLFogOffset / 100.0f, mResult.mFogColor);
|
||||
mRendering.setAmbientColour(mResult.mAmbientColor);
|
||||
mRendering.setSunColour(
|
||||
mResult.mSunColor, mResult.mSunColor * mResult.mGlareView * glareFade, mResult.mGlareView * glareFade);
|
||||
mRendering.setSunColour(mResult.mSunColor, mResult.mSunColor, mResult.mGlareView * glareFade);
|
||||
|
||||
mRendering.getSkyManager()->setWeather(mResult);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue