70 Qt3DRender::QFrameGraphNode *
frameGraphRoot() {
return mRenderSurfaceSelector; }
99 Qt3DRender::QCamera *
mainCamera() {
return mMainCamera; }
189 QgsPreviewQuad *
addTexturePreviewOverlay( Qt3DRender::QTexture2D *texture,
const QPointF ¢erNDC,
const QSizeF &size, QVector<Qt3DRender::QParameter *> additionalShaderParameters = QVector<Qt3DRender::QParameter *>() );
243 Qt3DRender::QRenderSurfaceSelector *mRenderSurfaceSelector =
nullptr;
244 Qt3DRender::QViewport *mMainViewPort =
nullptr;
245 bool mFrustumCullingEnabled =
true;
247 Qt3DRender::QCamera *mMainCamera =
nullptr;
248 Qt3DRender::QCamera *mLightCamera =
nullptr;
251 Qt3DRender::QCameraSelector *mMainCameraSelector =
nullptr;
252 Qt3DRender::QLayerFilter *mForwardRenderLayerFilter =
nullptr;
253 Qt3DRender::QRenderTargetSelector *mForwardRenderTargetSelector =
nullptr;
254 Qt3DRender::QClearBuffers *mForwardClearBuffers =
nullptr;
255 Qt3DRender::QFrustumCulling *mFrustumCulling =
nullptr;
257 Qt3DRender::QTexture2D *mForwardColorTexture =
nullptr;
258 Qt3DRender::QTexture2D *mForwardDepthTexture =
nullptr;
260 Qt3DRender::QDebugOverlay *mDebugOverlay =
nullptr;
263 Qt3DRender::QCameraSelector *mLightCameraSelectorShadowPass =
nullptr;
264 Qt3DRender::QLayerFilter *mShadowSceneEntitiesFilter =
nullptr;
265 Qt3DRender::QRenderTargetSelector *mShadowRenderTargetSelector =
nullptr;
266 Qt3DRender::QClearBuffers *mShadowClearBuffers =
nullptr;
267 Qt3DRender::QRenderStateSet *mShadowRenderStateSet =
nullptr;
269 Qt3DRender::QTexture2D *mShadowMapTexture =
nullptr;
275 Qt3DRender::QCameraSelector *mDepthRenderCameraSelector =
nullptr;
276 Qt3DRender::QRenderStateSet *mDepthRenderStateSet =
nullptr;
277 Qt3DRender::QLayerFilter *mDepthRenderLayerFilter =
nullptr;
278 Qt3DRender::QRenderTargetSelector *mDepthRenderCaptureTargetSelector =
nullptr;
279 Qt3DRender::QRenderCapture *mDepthRenderCapture =
nullptr;
281 Qt3DRender::QTexture2D *mDepthRenderCaptureDepthTexture =
nullptr;
282 Qt3DRender::QTexture2D *mDepthRenderCaptureColorTexture =
nullptr;
285 Qt3DRender::QRenderTargetSelector *mRenderCaptureTargetSelector =
nullptr;
286 Qt3DRender::QRenderCapture *mRenderCapture =
nullptr;
288 Qt3DRender::QTexture2D *mRenderCaptureColorTexture =
nullptr;
289 Qt3DRender::QTexture2D *mRenderCaptureDepthTexture =
nullptr;
292 Qt3DRender::QCameraSelector *mAmbientOcclusionRenderCameraSelector =
nullptr;
293 Qt3DRender::QRenderStateSet *mAmbientOcclusionRenderStateSet =
nullptr;
294 Qt3DRender::QLayerFilter *mAmbientOcclusionRenderLayerFilter =
nullptr;
295 Qt3DRender::QRenderTargetSelector *mAmbientOcclusionRenderCaptureTargetSelector =
nullptr;
297 Qt3DRender::QTexture2D *mAmbientOcclusionRenderTexture =
nullptr;
300 Qt3DRender::QCameraSelector *mAmbientOcclusionBlurCameraSelector =
nullptr;
301 Qt3DRender::QRenderStateSet *mAmbientOcclusionBlurStateSet =
nullptr;
302 Qt3DRender::QLayerFilter *mAmbientOcclusionBlurLayerFilter =
nullptr;
303 Qt3DRender::QRenderTargetSelector *mAmbientOcclusionBlurRenderCaptureTargetSelector =
nullptr;
305 Qt3DRender::QTexture2D *mAmbientOcclusionBlurTexture =
nullptr;
308 Qt3DRender::QCameraSelector *mRubberBandsCameraSelector =
nullptr;
309 Qt3DRender::QLayerFilter *mRubberBandsLayerFilter =
nullptr;
310 Qt3DRender::QRenderStateSet *mRubberBandsStateSet =
nullptr;
311 Qt3DRender::QRenderTargetSelector *mRubberBandsRenderTargetSelector =
nullptr;
313 bool mShadowRenderingEnabled =
false;
314 float mShadowBias = 0.00001f;
315 int mShadowMapResolution = 2048;
318 bool mAmbientOcclusionEnabled =
false;
319 float mAmbientOcclusionIntensity = 0.5f;
320 float mAmbientOcclusionRadius = 25.f;
321 float mAmbientOcclusionThreshold = 0.5f;
323 QSize mSize = QSize( 1024, 768 );
325 bool mEyeDomeLightingEnabled =
false;
326 double mEyeDomeLightingStrength = 1000.0;
327 int mEyeDomeLightingDistance = 1;
332 QEntity *mDepthRenderQuad =
nullptr;
334 QVector3D mLightDirection = QVector3D( 0.0, -1.0f, 0.0f );
337 Qt3DRender::QRenderStateSet *mClipRenderStateSet =
nullptr;
339 Qt3DCore::QEntity *mRootEntity =
nullptr;
341 Qt3DRender::QLayer *mPreviewLayer =
nullptr;
342 Qt3DRender::QLayer *mForwardRenderLayer =
nullptr;
343 Qt3DRender::QLayer *mCastShadowsLayer =
nullptr;
344 Qt3DRender::QLayer *mDepthRenderPassLayer =
nullptr;
345 Qt3DRender::QLayer *mTransparentObjectsPassLayer =
nullptr;
346 Qt3DRender::QLayer *mRubberBandsLayer =
nullptr;
352 Qt3DCore::QEntity *mRubberBandsRootEntity =
nullptr;
354 QVector<QgsPreviewQuad *> mPreviewQuads;
356 Qt3DRender::QFrameGraphNode *constructShadowRenderPass();
357 Qt3DRender::QFrameGraphNode *constructForwardRenderPass();
358 Qt3DRender::QFrameGraphNode *constructPostprocessingPass();
359 Qt3DRender::QFrameGraphNode *constructDepthRenderPass();
360 Qt3DRender::QFrameGraphNode *constructAmbientOcclusionRenderPass();
361 Qt3DRender::QFrameGraphNode *constructAmbientOcclusionBlurPass();
362 Qt3DRender::QFrameGraphNode *constructRubberBandsPass();
364 Qt3DRender::QFrameGraphNode *constructSubPostPassForProcessing();
365 Qt3DRender::QFrameGraphNode *constructSubPostPassForRenderCapture();
366 Qt3DRender::QFrameGraphNode *constructSubPostPassForTexturesPreview();
368 Qt3DCore::QEntity *constructDepthRenderQuad();
370 bool mRenderCaptureEnabled =
false;