文档

Unity Engine

Unity Engine

SetGlobalVector

Add a "set global shader vector property" command.
阅读时间1 分钟最后更新于 1 个月前

Definition

SetGlobalVector(int, Vector4)

Add a "set global shader vector property" command.
public void SetGlobalVector(int nameID, Vector4 value)

Parameters

nameID


value

Remarks

When the command buffer will be executed, a global shader vector property will be set at this point. The effect is as if Shader.SetGlobalVector was called.

SetGlobalVector(string, Vector4)

Add a "set global shader vector property" command.
public void SetGlobalVector(string name, Vector4 value)

Parameters

name


value

Remarks

When the command buffer will be executed, a global shader vector property will be set at this point. The effect is as if Shader.SetGlobalVector was called.