1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-29 enable FragDepth when using LogarithmicDepthBuffer (fixes heavy z-fighting on the craft model)

This commit is contained in:
Philippe Renon 2015-11-11 00:24:07 +01:00
parent 0a374d2904
commit a79fd612ac

View File

@ -186,7 +186,7 @@ public:
if (logDepthBufferEnabled) {
qDebug() << "OSGCamera::attach - install logarithmic depth buffer";
logDepthBuffer = new osgEarth::Util::LogarithmicDepthBuffer();
// logDepthBuffer->setUseFragDepth(true);
logDepthBuffer->setUseFragDepth(true);
logDepthBuffer->install(camera);
}