WaveForwardRenderer.qml Example File
wave/WaveForwardRenderer.qml
import Qt3D.Core 2.0
import Qt3D.Render 2.0
TechniqueFilter {
id: root
property alias camera: cameraSelector.camera
property alias window: surfaceSelector.surface
readonly property Layer backgroundLayer: Layer {}
readonly property Layer waveLayer: Layer {}
matchAll: [ FilterKey { name: "renderingStyle"; value: "forward" } ]
RenderSurfaceSelector {
id: surfaceSelector
Viewport {
id: viewport
normalizedRect: Qt.rect(0.0, 0.0, 1.0, 1.0)
CameraSelector {
id: cameraSelector
ClearBuffers {
buffers: ClearBuffers.ColorDepthBuffer
LayerFilter { layers: root.backgroundLayer }
}
LayerFilter { layers: root.waveLayer }
}
}
}
}