mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +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
@ -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…
x
Reference in New Issue
Block a user