Share state set between all navmesh tiles

Do not change GL_DEPTH because it's always disabled anyway.
This commit is contained in:
elsid 2021-11-02 02:43:09 +01:00
parent d1a1b8c01c
commit cffcb6a897
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40
8 changed files with 57 additions and 32 deletions

View file

@ -43,7 +43,7 @@ namespace SceneUtil
const osg::ref_ptr<osg::Group> group(new osg::Group);
DebugDraw debugDraw(*group, osg::Vec3f(0, 0, 0), 1);
DebugDraw debugDraw(*group, DebugDraw::makeStateSet(), osg::Vec3f(0, 0, 0), 1);
const auto agentRadius = halfExtents.x();
const auto agentHeight = 2.0f * halfExtents.z();