SetUniformValue QML Type

定义单次pass 时要设置的值。更多

Import Statement: import QtQuick3D
Inherits:

Command

属性

详细说明

SetUniformValue 是一个Command ,可添加到Pass 的命令列表中。执行后,它将把target 属性给出的制服设置为value

注意: 该命令设置的值只会在pass 出现时设置。如果连续执行,该值将恢复为Effect 项目中定义的制服初始值。

另请参阅 BufferInput

属性文档

target : string

指定将在pass 期间更改其值的制服名称。该名称必须与Effect 中现有属性的名称相匹配。


value : Variant

指定将在target 制服上设置的值。


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