mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Give point lights a minimum radius of 16
This commit is contained in:
parent
d13f108779
commit
f8be5fdd2a
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ namespace SceneUtil
|
||||||
osg::ref_ptr<osg::Light> light(new osg::Light);
|
osg::ref_ptr<osg::Light> light(new osg::Light);
|
||||||
lightSource->setNodeMask(lightMask);
|
lightSource->setNodeMask(lightMask);
|
||||||
|
|
||||||
float radius = esmLight.mRadius;
|
// The minimum scene light radius is 16 in Morrowind
|
||||||
|
const float radius = std::max(esmLight.mRadius, 16.f);
|
||||||
lightSource->setRadius(radius);
|
lightSource->setRadius(radius);
|
||||||
|
|
||||||
configureLight(light, radius, isExterior);
|
configureLight(light, radius, isExterior);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue