SetGlobalFloat
Add a "set global shader float property" command.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetGlobalFloat(int, float)
Add a "set global shader float property" command.
public void SetGlobalFloat(int nameID, float value)
Parameters
Remarks
When the command buffer will be executed, a global shader float property will be set at this point. The effect is as if Shader.SetGlobalFloat was called.
SetGlobalFloat(string, float)
Add a "set global shader float property" command.
public void SetGlobalFloat(string name, float value)
Parameters
Remarks
When the command buffer will be executed, a global shader float property will be set at this point. The effect is as if Shader.SetGlobalFloat was called.