In questa pagina

TextureInput QML Type

Specifica una texture accessibile agli shader di un “ CustomMaterial ” o di un “Effect”. Per saperne di più...

Import Statement: import QtQuick3D
Inherits:

QtObject

Proprietà

Descrizione dettagliata

Si tratta di un tipo che può essere utilizzato per rendere visibile un Texture a uno shader, sia nell'render pass di un Effect, sia in un CustomMaterial. Esiste principalmente per assegnare un nome locale al Texture a cui è possibile fare riferimento dagli shader.

CustomMaterialQuando una proprietà TextureInput viene dichiarata in un ` Effect ` o in un ` `, sarà automaticamente disponibile come campionatore in tutti gli shader con il nome della proprietà stessa.

Documentazione delle proprietà

enabled : bool

Questa proprietà determina se l'opzione " TextureInput " è abilitata. Il valore predefinito è true. Se disabilitata, gli shader dell'effetto campionano una texture nera opaca fittizia anziché quella specificata da " texture".

texture : Texture

La texture a cui questo TextureInput fa da riferimento indiretto.

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