NoDraw QML Type

프레임그래프 분기에 NoDraw 노드가 있으면 렌더러가 프리미티브를 렌더링하지 못하도록 합니다. 더 보기...

Import Statement: import Qt3D.Render 2.8
In C++: QNoDraw
Inherits:

FrameGraphNode

Status: Deprecated

상세 설명

프레임그래프가 메시를 그릴 필요 없이 일부 렌더링 상태를 설정하거나 일부 버퍼를 지워야 할 때 NoDraw를 사용해야 합니다. 실제로 필터링을 수행하는 데 드는 오버헤드 비용 없이 씬의 사용 가능한 Qt3DRender::QRenderPass 인스턴스 중 어느 것과도 일치하지 않는 Qt3DRender::QRenderPassFilter 을 사용하는 것과 동일한 효과가 있습니다.

비활성화하면 NoDraw 노드가 씬 렌더링을 방해하지 않습니다. 따라서 활성화된 프로퍼티를 토글하면 NoDraw를 활성화 또는 비활성화할 수 있습니다.

NoDraw는 일반적으로 ClearBuffers 노드의 자식으로 사용되어 여러 렌더 패스가 있을 때 씬을 그리지 못하도록 방지합니다.

Viewport {
    CameraSelector {
        ClearBuffers {
            buffers: ClearBuffers.ColorDepthBuffer
            NoDraw { } // Prevents from drawing anything
        }
        RenderPassFilter {
            ...
        }
        RenderPassFilter {
            ...
        }
    }
}

© 2025 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.