70 Qt3DRender::QFrameGraphNode *
frameGraphRoot() {
return mRenderSurfaceSelector; }
195 QgsPreviewQuad *
addTexturePreviewOverlay( Qt3DRender::QTexture2D *texture,
const QPointF ¢erNDC,
const QSizeF &size, QVector<Qt3DRender::QParameter *> additionalShaderParameters = QVector<Qt3DRender::QParameter *>() );
226 Qt3DRender::QRenderSurfaceSelector *mRenderSurfaceSelector =
nullptr;
227 Qt3DRender::QViewport *mMainViewPort =
nullptr;
228 bool mFrustumCullingEnabled =
true;
230 Qt3DRender::QCamera *mMainCamera =
nullptr;
231 Qt3DRender::QCamera *mLightCamera =
nullptr;
234 Qt3DRender::QCameraSelector *mMainCameraSelector =
nullptr;
235 Qt3DRender::QLayerFilter *mForwardRenderLayerFilter =
nullptr;
236 Qt3DRender::QRenderTargetSelector *mForwardRenderTargetSelector =
nullptr;
237 Qt3DRender::QClearBuffers *mForwardClearBuffers =
nullptr;
238 Qt3DRender::QFrustumCulling *mFrustumCulling =
nullptr;
240 Qt3DRender::QTexture2D *mForwardColorTexture =
nullptr;
241 Qt3DRender::QTexture2D *mForwardDepthTexture =
nullptr;
243 Qt3DRender::QDebugOverlay *mDebugOverlay =
nullptr;
246 Qt3DRender::QCameraSelector *mLightCameraSelectorShadowPass =
nullptr;
247 Qt3DRender::QLayerFilter *mShadowSceneEntitiesFilter =
nullptr;
248 Qt3DRender::QRenderTargetSelector *mShadowRenderTargetSelector =
nullptr;
249 Qt3DRender::QClearBuffers *mShadowClearBuffers =
nullptr;
250 Qt3DRender::QRenderStateSet *mShadowRenderStateSet =
nullptr;
252 Qt3DRender::QTexture2D *mShadowMapTexture =
nullptr;
258 Qt3DRender::QCameraSelector *mDepthRenderCameraSelector =
nullptr;
259 Qt3DRender::QRenderStateSet *mDepthRenderStateSet =
nullptr;;
260 Qt3DRender::QLayerFilter *mDepthRenderLayerFilter =
nullptr;
261 Qt3DRender::QRenderTargetSelector *mDepthRenderCaptureTargetSelector =
nullptr;
262 Qt3DRender::QRenderCapture *mDepthRenderCapture =
nullptr;
264 Qt3DRender::QTexture2D *mDepthRenderCaptureDepthTexture =
nullptr;
265 Qt3DRender::QTexture2D *mDepthRenderCaptureColorTexture =
nullptr;
268 Qt3DRender::QCameraSelector *mPostProcessingCameraSelector =
nullptr;
269 Qt3DRender::QLayerFilter *mPostprocessPassLayerFilter =
nullptr;
270 Qt3DRender::QClearBuffers *mPostprocessClearBuffers =
nullptr;
271 Qt3DRender::QRenderTargetSelector *mRenderCaptureTargetSelector =
nullptr;
272 Qt3DRender::QRenderCapture *mRenderCapture =
nullptr;
274 Qt3DRender::QTexture2D *mRenderCaptureColorTexture =
nullptr;
275 Qt3DRender::QTexture2D *mRenderCaptureDepthTexture =
nullptr;
278 Qt3DRender::QCameraSelector *mAmbientOcclusionRenderCameraSelector =
nullptr;
279 Qt3DRender::QRenderStateSet *mAmbientOcclusionRenderStateSet =
nullptr;;
280 Qt3DRender::QLayerFilter *mAmbientOcclusionRenderLayerFilter =
nullptr;
281 Qt3DRender::QRenderTargetSelector *mAmbientOcclusionRenderCaptureTargetSelector =
nullptr;
283 Qt3DRender::QTexture2D *mAmbientOcclusionRenderTexture =
nullptr;
286 Qt3DRender::QCameraSelector *mAmbientOcclusionBlurCameraSelector =
nullptr;
287 Qt3DRender::QRenderStateSet *mAmbientOcclusionBlurStateSet =
nullptr;;
288 Qt3DRender::QLayerFilter *mAmbientOcclusionBlurLayerFilter =
nullptr;
289 Qt3DRender::QRenderTargetSelector *mAmbientOcclusionBlurRenderCaptureTargetSelector =
nullptr;
291 Qt3DRender::QTexture2D *mAmbientOcclusionBlurTexture =
nullptr;
294 Qt3DRender::QCameraSelector *mRubberBandsCameraSelector =
nullptr;
295 Qt3DRender::QLayerFilter *mRubberBandsLayerFilter =
nullptr;
296 Qt3DRender::QRenderStateSet *mRubberBandsStateSet =
nullptr;
297 Qt3DRender::QRenderTargetSelector *mRubberBandsRenderTargetSelector =
nullptr;
300 Qt3DRender::QLayerFilter *mPreviewLayerFilter =
nullptr;
301 Qt3DRender::QRenderStateSet *mPreviewRenderStateSet =
nullptr;
302 Qt3DRender::QDepthTest *mPreviewDepthTest =
nullptr;
303 Qt3DRender::QCullFace *mPreviewCullFace =
nullptr;
305 bool mShadowRenderingEnabled =
false;
306 float mShadowBias = 0.00001f;
307 int mShadowMapResolution = 2048;
310 bool mAmbientOcclusionEnabled =
false;
311 float mAmbientOcclusionIntensity = 0.5f;
312 float mAmbientOcclusionRadius = 25.f;
313 float mAmbientOcclusionThreshold = 0.5f;
315 QSize mSize = QSize( 1024, 768 );
317 bool mEyeDomeLightingEnabled =
false;
318 double mEyeDomeLightingStrength = 1000.0;
319 int mEyeDomeLightingDistance = 1;
324 QEntity *mDepthRenderQuad =
nullptr;
326 QVector3D mLightDirection = QVector3D( 0.0, -1.0f, 0.0f );
328 Qt3DCore::QEntity *mRootEntity =
nullptr;
330 Qt3DRender::QLayer *mPreviewLayer =
nullptr;
331 Qt3DRender::QLayer *mForwardRenderLayer =
nullptr;
332 Qt3DRender::QLayer *mCastShadowsLayer =
nullptr;
333 Qt3DRender::QLayer *mDepthRenderPassLayer =
nullptr;
334 Qt3DRender::QLayer *mTransparentObjectsPassLayer =
nullptr;
335 Qt3DRender::QLayer *mRubberBandsLayer =
nullptr;
341 Qt3DCore::QEntity *mRubberBandsRootEntity =
nullptr;
343 QVector<QgsPreviewQuad *> mPreviewQuads;
345 Qt3DRender::QFrameGraphNode *constructShadowRenderPass();
346 Qt3DRender::QFrameGraphNode *constructForwardRenderPass();
347 Qt3DRender::QFrameGraphNode *constructTexturesPreviewPass();
348 Qt3DRender::QFrameGraphNode *constructPostprocessingPass();
349 Qt3DRender::QFrameGraphNode *constructDepthRenderPass();
350 Qt3DRender::QFrameGraphNode *constructAmbientOcclusionRenderPass();
351 Qt3DRender::QFrameGraphNode *constructAmbientOcclusionBlurPass();
352 Qt3DRender::QFrameGraphNode *constructRubberBandsPass();
354 Qt3DCore::QEntity *constructDepthRenderQuad();
356 bool mRenderCaptureEnabled =
true;