SimpleQuadRenderer QML Type
メインのレンダリングターゲットに、テクスチャが適用されたフルスクリーンの四角形を描画します。詳細...
| Import Statement: | import QtQuick3D.Helpers |
| Since: | Qt 6.11 |
| Inherits: |
プロパティ
- texture : Texture
詳細な説明
SimpleQuadRendererは、Texture を画面全体にブリットするRenderExtension です。これは、Main レンダリングモードのPostColor ステージで実行されます。つまり、シーンの描画完了後、ポストプロセッシングエフェクトの適用前に行われ、View3D のメインレンダリングターゲットに直接書き込みを行い、シーンによって描画された内容を上書きします。
最も一般的な使用例は、完全にカスタマイズされたレンダリングパイプラインを構築することです。View3D.renderFormat を設定してQt Quick 3Dの組み込みパスを無効にし(View3D.DisableInternalPasses )、シーンの内容を1つ以上のRenderPass ターゲットにレンダリングした後、SimpleQuadRendererを使用して結果を画面上に合成し直します。
注:SimpleQuadRendererは シーンに対して拡張機能として自動的に登録されます。View3D.extensions に手動で追加する必要はありません。
import QtQuick3D
import QtQuick3D.Helpers
View3D {
// Disable the built-in render passes so we can provide our own output
renderFormat: View3D.DisableInternalPasses
// A custom offscreen pass that renders scene content
RenderPass {
id: mainColorPass
commands: [
RenderablesFilter { renderableTypes: RenderablesFilter.Opaque | RenderablesFilter.Transparent }
]
}
// Blit the result of the custom pass to the screen
SimpleQuadRenderer {
texture: Texture {
textureProvider: RenderOutputProvider {
renderPass: mainColorPass
}
}
}
}関連項目: RenderOutputProvider 、RenderPass 、およびView3D 。
プロパティのドキュメント
texture : Texture
フルスクリーンのクワッド全体にレンダリングされるテクスチャです。これは、任意のTexture です。これには、textureProvider がRenderOutputProvider に設定され、RenderPass からの出力や、Qt Quick 3Dの組み込みパス(深度テクスチャやAOテクスチャなど)のいずれかを表示するものも含まれます。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.