Version: 2022.3
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 如 Shader.PropertyToID 给定的全局资源的 ID。

描述

Binds a global texture to a RayTracingShader.

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