Skip to content
Permalink
Browse files

fix depth buffer not working correctly for some machine

  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Nov 6, 2020
1 parent c3ef5cc commit 4ade4f044ee70842756e8de8ed8526e3dbd2bab8
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/3d/qgsshadowrenderingframegraph.cpp
@@ -67,8 +67,6 @@ Qt3DRender::QFrameGraphNode *QgsShadowRenderingFrameGraph::constructForwardRende
mForwardDepthTexture->setMinificationFilter( Qt3DRender::QTexture2D::Linear );
mForwardDepthTexture->wrapMode()->setX( Qt3DRender::QTextureWrapMode::ClampToEdge );
mForwardDepthTexture->wrapMode()->setY( Qt3DRender::QTextureWrapMode::ClampToEdge );
mForwardDepthTexture->setComparisonFunction( Qt3DRender::QTexture2D::ComparisonFunction::CompareLessEqual );
mForwardDepthTexture->setComparisonMode( Qt3DRender::QTexture2D::ComparisonMode::CompareRefToTexture );

mForwardRenderTarget = new Qt3DRender::QRenderTarget;
mForwardRenderTargetDepthOutput = new Qt3DRender::QRenderTargetOutput;

0 comments on commit 4ade4f0

Please sign in to comment.
You can’t perform that action at this time.