기술 자료

Unity Engine

Unity Engine

SetTextureFromGlobal

Binds a global texture to a RayTracingShader.
읽는 시간 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.