CullFace QML Type

컬페이스 유형은 앞면 또는 뒷면 컬링을 활성화할지 여부를 지정합니다. 더 보기...

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

RenderState

Status: Deprecated

속성

  • mode : enumeration

상세 설명

컬페이스는 앞면과 뒷면 중 어느 면을 컬링할지 설정합니다. 패싯에는 삼각형, 사변형, 다각형 및 직사각형이 포함됩니다.

RenderPass 의 renderStates 프로퍼티에 추가할 수 있습니다:

RenderPass {
    shaderProgram: ShaderProgram {
        // ...
    }
    renderStates: [
        CullFace {
            mode: CullFace.Front
        }
    ]
}

의 렌더스테이트 프로퍼티에 추가하거나 RenderStateSet 의 렌더스테이트 프로퍼티에 추가할 수 있습니다:

RenderStateSet {
    renderStates: [
        CullFace {
            mode: CullFace.Front
        }
    ]
}

FrontFace참조하세요 .

프로퍼티 문서

mode : enumeration

CullFace 에서 사용하는 컬링 모드를 보유합니다. 기본값은 QCullFace.Back으로 설정됩니다.

  • CullFace.NoCulling - 컬링이 비활성화됩니다.
  • CullFace.Front - 정면을 향하는 폴리곤에 대해 컬링이 활성화됩니다.
  • CullFace.Back - 뒷면을 향한 폴리곤에 컬링이 활성화됩니다.
  • CullFace.FrontAndBack - 모든 폴리곤에 대해 컬링이 활성화되지만 점과 선이 그려집니다.

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