refactor and fix wobbly shores

This commit is contained in:
glassmancody.info 2021-08-04 17:49:57 -07:00
parent cad0b151cb
commit 09e03fde2e
45 changed files with 256 additions and 239 deletions

View file

@ -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;
}
}