mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-22 12:54:14 +01:00
LP-29 enable FragDepth when using LogarithmicDepthBuffer (fixes heavy z-fighting on the craft model)
This commit is contained in:
parent
0a374d2904
commit
a79fd612ac
@ -186,7 +186,7 @@ public:
|
|||||||
if (logDepthBufferEnabled) {
|
if (logDepthBufferEnabled) {
|
||||||
qDebug() << "OSGCamera::attach - install logarithmic depth buffer";
|
qDebug() << "OSGCamera::attach - install logarithmic depth buffer";
|
||||||
logDepthBuffer = new osgEarth::Util::LogarithmicDepthBuffer();
|
logDepthBuffer = new osgEarth::Util::LogarithmicDepthBuffer();
|
||||||
// logDepthBuffer->setUseFragDepth(true);
|
logDepthBuffer->setUseFragDepth(true);
|
||||||
logDepthBuffer->install(camera);
|
logDepthBuffer->install(camera);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user