mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Make DebugDrawer a LightManager child, don't use VAO for lines
Fixes terrain lighting but currently breaks non-line primitive rendering in exteriors
This commit is contained in:
parent
38ab09a52e
commit
f9498e6ea4
2 changed files with 2 additions and 2 deletions
|
@ -433,7 +433,7 @@ namespace MWRender
|
|||
}
|
||||
|
||||
mDebugDraw = new Debug::DebugDrawer(mResourceSystem->getSceneManager()->getShaderManager());
|
||||
mRootNode->addChild(mDebugDraw);
|
||||
sceneRoot->addChild(mDebugDraw);
|
||||
|
||||
mResourceSystem->getSceneManager()->setIncrementalCompileOperation(mViewer->getIncrementalCompileOperation());
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ namespace Debug
|
|||
auto vertices = new osg::Vec3Array;
|
||||
auto color = new osg::Vec3Array;
|
||||
lines.setDataVariance(osg::Object::STATIC);
|
||||
lines.setUseVertexArrayObject(true);
|
||||
lines.setUseVertexBufferObjects(true);
|
||||
lines.setUseDisplayList(false);
|
||||
lines.setCullingActive(false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue