Nesta página

TextureInput QML Type

Especifica uma textura disponibilizada para os shaders de um ` CustomMaterial ` ou `Effect`. Mais...

Import Statement: import QtQuick3D
Inherits:

QtObject

Propriedades

Descrição detalhada

Este é um tipo que pode ser usado para expor um ` Texture ` a um shader, seja no ` render pass ` de um ` Effect`, seja em um ` CustomMaterial`. Ele existe principalmente para atribuir um nome local ao ` Texture ` que possa ser referenciado a partir de shaders.

Quando uma propriedade `TextureInput` é declarada em um ` Effect ` ou em um ` CustomMaterial`, ela fica automaticamente disponível como um sampler em todos os shaders pelo nome da propriedade.

Documentação da propriedade

enabled : bool

Essa propriedade determina se o recurso “ TextureInput ” está ativado. O valor padrão é “true”. Quando desativado, os shaders do efeito utilizam uma textura preta opaca fictícia em vez daquela especificada por “ texture ”.

texture : Texture

A textura para a qual este TextureInput serve como referência indireta.

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