Version: 2021.2
言語: 日本語
Experimental: this API is experimental and might be changed or removed in the future.

RayTracingShader.SetTextureFromGlobal

マニュアルに切り替える
public void SetTextureFromGlobal (int nameID, int globalTextureNameID);
public void SetTextureFromGlobal (string name, string globalTextureName);

パラメーター

nameID The ID of the texture as given by Shader.PropertyToID.
name The name of the texture to bind.
globalTextureName The name of the global resource to bind to the RayTracingShader.
globalTextureNameID The ID of the global resource as given by Shader.PropertyToID.

説明

Binds a global texture to a RayTracingShader.

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