文档

Unity Engine

Unity Engine

SetGlobalTexture

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

Definition

SetGlobalTexture(string, RenderTargetIdentifier)

Add a "set global shader texture property" command, referencing a RenderTexture.
public void SetGlobalTexture(string name, RenderTargetIdentifier value)

Parameters

Remarks

When the command buffer will be executed, a global shader texture property will be set at this point. The effect is as if Shader.SetGlobalTexture was called, but with a RenderTexture instead of a Texture. Additional Resources: RenderTargetIdentifier, RenderTextureSubElement.

SetGlobalTexture(int, RenderTargetIdentifier)

Add a "set global shader texture property" command, referencing a RenderTexture.
public void SetGlobalTexture(int nameID, RenderTargetIdentifier value)

Parameters

Remarks

When the command buffer will be executed, a global shader texture property will be set at this point. The effect is as if Shader.SetGlobalTexture was called, but with a RenderTexture instead of a Texture. Additional Resources: RenderTargetIdentifier, RenderTextureSubElement.

SetGlobalTexture(string, RenderTargetIdentifier, RenderTextureSubElement)

Add a "set global shader texture property" command, referencing a RenderTexture.
public void SetGlobalTexture(string name, RenderTargetIdentifier value, RenderTextureSubElement element)

Parameters

Remarks

When the command buffer will be executed, a global shader texture property will be set at this point. The effect is as if Shader.SetGlobalTexture was called, but with a RenderTexture instead of a Texture. Additional Resources: RenderTargetIdentifier, RenderTextureSubElement.

SetGlobalTexture(int, RenderTargetIdentifier, RenderTextureSubElement)

Add a "set global shader texture property" command, referencing a RenderTexture.
public void SetGlobalTexture(int nameID, RenderTargetIdentifier value, RenderTextureSubElement element)

Parameters

Remarks

When the command buffer will be executed, a global shader texture property will be set at this point. The effect is as if Shader.SetGlobalTexture was called, but with a RenderTexture instead of a Texture. Additional Resources: RenderTargetIdentifier, RenderTextureSubElement.