このページでは

TextureInput QML Type

CustomMaterial またはEffectのシェーダーに対して公開されるテクスチャを指定します。詳細...

Import Statement: import QtQuick3D
Inherits:

QtObject

プロパティ

詳細な説明

これは、Effect のrender pass 内、あるいはCustomMaterial 内で、Texture をシェーダーに公開するために使用できる型です。主に、シェーダーから参照可能なTexture にローカル名を割り当てるために存在します。

Effect やCustomMaterial 内でTextureInputプロパティが宣言されると、そのプロパティ名を用いて、すべてのシェーダー内で自動的にサンプラーとして利用できるようになります。

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

enabled : bool

このプロパティは、このTextureInput が有効かどうかを決定します。デフォルト値はtrueです。無効に設定すると、エフェクトのシェーダーは、texture で指定されたテクスチャの代わりに、ダミーの不透明な黒いテクスチャをサンプリングします。

texture : Texture

このTextureInput が間接参照の対象となるテクスチャ。

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