Shader.GetGlobalTexture

Switch to Manual
public static Texture GetGlobalTexture (string name);
public static Texture GetGlobalTexture (int nameID);

Parameters

nameID通过 Shader.PropertyToID 检索的属性的名称 ID。
name属性的名称。

Description

获取先前用 SetGlobalTexture 为所有着色器设置的全局纹理属性。