ドキュメント

Unity Engine

Unity Engine

SetTextureFromGlobal

Binds a global texture to a RayTracingShader.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

SetTextureFromGlobal(int, int)

Binds a global texture to a RayTracingShader.
public void SetTextureFromGlobal(int nameID, int globalTextureNameID)

Parameters

nameID

The ID of the texture as given by Shader.PropertyToID.

globalTextureNameID

The ID of the global resource as given by Shader.PropertyToID.

Remarks

The global texture must be previously set using Shader.SetGlobalTexture.

SetTextureFromGlobal(string, string)

Binds a global texture to a RayTracingShader.
public void SetTextureFromGlobal(string name, string globalTextureName)

Parameters

name

The name of the texture to bind.

globalTextureName

The name of the global resource to bind to the RayTracingShader.

Remarks

The global texture must be previously set using Shader.SetGlobalTexture.