public static extern void SetGlobalTexture(int nameID, Texture tex); public static void SetGlobalTexture(string propertyName, Texture tex)
public static void SetGlobalTexture(string propertyName, Texture tex) { Shader.SetGlobalTexture(Shader.PropertyToID(propertyName), tex); }