このページでは

CullFace QML Type

CullFace 型は、前面カリングと背面カリングのどちらが有効かを指定します。詳細...

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

RenderState

Status: Deprecated

この型は非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

  • mode : enumeration

詳細な説明

CullFace は、前面または背面のファセットをカリングするかどうかを設定します。ファセットには、三角形、四角形、多角形、および長方形が含まれます。

RenderPass のrenderStatesプロパティに追加できます:

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

または、RenderStateSet のrenderStatesプロパティに追加することもできます:

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

FrontFaceも参照してください 。

プロパティのドキュメント

mode : enumeration

CullFace で使用されるカリングモードを指定します。デフォルトは QCullFace.Back に設定されています。

  • CullFace.NoCulling - カリングが無効になります
  • CullFace.Front - 前面を向いたポリゴンに対してカリングを有効にする
  • CullFace.Back - 背面を向いたポリゴンに対してカリングが有効になります
  • CullFace.FrontAndBack - すべてのポリゴンに対してカリングが有効になりますが、点と線は描画されます

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