Defines a value to be set during a single pass . 更多...
导入语句: | import QtQuick3D |
Since: | Qt 5.15 |
继承: | Command |
SetUniformValue is a Command which can be added to the list of commands in a Pass . When executed, it will set the uniform given by the target 特性到 value .
注意: The value set by this command is will only be set during the pass it occurs in. For consecutive passes the value will be revert to the initial value of the uniform as it was defined in the Effect 项。
另请参阅 BufferInput .
target : string |
Specifies the name of the uniform that will have its value changed during the pass . This must match the name of an existing property in the Effect .
value : Variant |
Specifies the value that will be set on the
target
uniform.