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

@ -47,7 +47,7 @@ namespace SceneUtil
using namespace DetourNavigator;
const osg::ref_ptr<osg::Group> group(new osg::Group);
DebugDraw debugDraw(*group, osg::Vec3f(0, 0, 0), 1.0f);
DebugDraw debugDraw(*group, DebugDraw::makeStateSet(), osg::Vec3f(0, 0, 0), 1.0f);
const DetourNavigator::Mesh& mesh = recastMesh.getMesh();
std::vector<int> indices = mesh.getIndices();
std::vector<float> vertices = mesh.getVertices();