En esta página

TextureInput QML Type

Especifica una textura a la que tienen acceso los sombreadores de un « CustomMaterial » o un «Effect». Más información...

Import Statement: import QtQuick3D
Inherits:

QtObject

Propiedades

Descripción detallada

Se trata de un tipo que puede utilizarse para exponer un ` Texture ` a un shader, ya sea en el ` render pass ` de un ` Effect` o en un ` CustomMaterial`. Su finalidad principal es asignar un nombre local al ` Texture ` al que se pueda hacer referencia desde los shaders.

Cuando se declara una propiedad TextureInput en un « Effect » o en un « CustomMaterial », estará disponible automáticamente como muestreador en todos los sombreadores mediante el nombre de su propiedad.

Documentación de la propiedad

enabled : bool

Esta propiedad determina si está activada la opción « TextureInput ». El valor por defecto es «true». Cuando está desactivada, los shaders del efecto muestrean una textura negra opaca ficticia en lugar de la especificada en « texture ».

texture : Texture

La textura a la que hace referencia esta 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.