mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-09 21:44:54 +00:00
Increase the importance of light radius when sorting lights (Bug #2759)
This commit is contained in:
parent
3f27c8cc97
commit
4aa40d16bc
@ -374,7 +374,7 @@ namespace SceneUtil
|
|||||||
|
|
||||||
bool sortLights (const LightManager::LightSourceViewBound* left, const LightManager::LightSourceViewBound* right)
|
bool sortLights (const LightManager::LightSourceViewBound* left, const LightManager::LightSourceViewBound* right)
|
||||||
{
|
{
|
||||||
return left->mViewBound.center().length2() - left->mViewBound.radius2()/4.f < right->mViewBound.center().length2() - right->mViewBound.radius2()/4.f;
|
return left->mViewBound.center().length2() - left->mViewBound.radius2()*81 < right->mViewBound.center().length2() - right->mViewBound.radius2()*81;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LightListCallback::operator()(osg::Node *node, osg::NodeVisitor *nv)
|
void LightListCallback::operator()(osg::Node *node, osg::NodeVisitor *nv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user