mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
refactor and fix wobbly shores
This commit is contained in:
parent
cad0b151cb
commit
09e03fde2e
45 changed files with 256 additions and 239 deletions
|
@ -1,6 +1,8 @@
|
|||
#include "agentpath.hpp"
|
||||
#include "detourdebugdraw.hpp"
|
||||
|
||||
#include <osg/Material>
|
||||
|
||||
#include <components/detournavigator/settings.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -65,6 +67,10 @@ namespace SceneUtil
|
|||
|
||||
debugDraw.depthMask(true);
|
||||
|
||||
osg::ref_ptr<osg::Material> material = new osg::Material;
|
||||
material->setColorMode(osg::Material::AMBIENT_AND_DIFFUSE);
|
||||
group->getOrCreateStateSet()->setAttribute(material);
|
||||
|
||||
return group;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue