mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Share state set between all navmesh tiles
Do not change GL_DEPTH because it's always disabled anyway.
This commit is contained in:
parent
d1a1b8c01c
commit
cffcb6a897
8 changed files with 57 additions and 32 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue