TextureInput QML Type

Specifies a texture exposed to the shaders of a CustomMaterial or Effect. More...

Import Statement: import QtQuick3D

Properties

Detailed Description

This is a type which can be used for exposing a Texture to a shader, either in the render pass of an Effect, or in a CustomMaterial. It exists primarily to assign a local name to the Texture that can be referenced from shaders.

When a TextureInput property is declared in an Effect or a CustomMaterial, it will automatically be available as a sampler in all shaders by its property name.

Property Documentation

enabled : bool

The property determines if this TextureInput is enabled. The default value is true. When disabled, the shaders of the effect sample a dummy, opaque black texture instead of the one specified by texture.


texture : Texture

The texture for which this TextureInput serves as an indirection.


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