Version: 2020.1
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 resourceName, string globalTextureName);

参数

resourceName 要进行绑定的本地资源的名称。
nameID 如 Shader.PropertyToID 给定的本地资源的 ID。
globalTextureName 要绑定到本地资源的全局资源的名称。
globalTextureNameID 如 Shader.PropertyToID 给定的全局资源的 ID。

描述

将全局纹理资源绑定到 RayTracingShader 的本地纹理资源。

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961