本页内容

SetUniformValue QML Type

定义在单次pass 期间要设置的值。更多内容...

Import Statement: import QtQuick3D
Inherits:

Command

属性

详细说明

SetUniformValue 是一个Command ,可添加到Pass 中的命令列表中。执行时,它将把由target 属性指定的uniform设置为value 。

注意: 此命令设置的值仅在包含该命令的pass 中生效。在后续渲染通道中,该值将恢复为Effect 项中定义的uniform初始值。

另请参阅 BufferInput 。

属性文档

target : string

指定在pass 期间其值将被更改的uniform的名称。该名称必须与Effect 中现有属性的名称一致。

value : Variant

指定将设置在target 统一变量上的值。

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