NoDraw QML Type
FrameGraph 분기에 NoDraw 노드가 존재하면, 렌더러가 어떤 프리미티브도 렌더링하지 못하게 됩니다. 더 보기...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QNoDraw |
| Inherits: | |
| Status: | Deprecated |
이 유형은 더 이상 사용되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.
상세 설명
NoDraw는 FrameGraph가 메쉬를 렌더링할 필요 없이 일부 렌더링 상태를 설정하거나 버퍼를 지워야 할 때 사용해야 합니다. 이는 실제로 필터링을 수행하는 데 따르는 오버헤드 비용 없이, 장면의 사용 가능한 모든 Qt3DRender::QRenderPass 인스턴스와 일치하지 않는 Qt3DRender::QRenderPassFilter 를 사용하는 것과 동일한 효과를 냅니다.
비활성화된 상태에서도 NoDraw 노드는 씬의 렌더링을 막지 않습니다. 따라서 enabled 속성을 토글하여 NoDraw를 활성화하거나 비활성화할 수 있습니다.
NoDraw는 일반적으로 ClearBuffers 노드의 자식 노드로 사용되어, 여러 렌더 패스가 있을 때 장면이 그려지는 것을 방지합니다.
Viewport {
CameraSelector {
ClearBuffers {
buffers: ClearBuffers.ColorDepthBuffer
NoDraw { } // Prevents from drawing anything
}
RenderPassFilter {
...
}
RenderPassFilter {
...
}
}
}© 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.