TextureInput QML Type
Especifica una textura expuesta a los shaders de un CustomMaterial o Efecto. Más...
| Import Statement: | import QtQuick3D |
| Inherits: |
Propiedades
Descripción detallada
Este es un tipo que puede ser utilizado para exponer un Texture a un shader, ya sea en el render pass de un Effect, o en un CustomMaterial. Existe principalmente para asignar un nombre local al Texture que puede ser referenciado desde shaders.
Cuando se declara una propiedad TextureInput en un Effect o en un CustomMaterial, automáticamente estará disponible como muestreador en todos los shaders por su nombre de propiedad.
Documentación de propiedades
enabled : bool
La propiedad determina si este TextureInput está habilitado. El valor por defecto es true. Cuando está desactivada, los shaders del efecto muestrean una textura negra opaca ficticia en lugar de la especificada por texture.
texture : Texture
La textura para la que este TextureInput sirve de indirección.
© 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.