现在在我的着色器中,我有 5 个纹理,
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_MainTex2("Texture2", 2D) = "white" {}
_MainTex3 ("Texture3", 2D) = "white" {}
_MainTex4 ("Texture4", 2D) = "white" {}
_MainTex5 ("Texture5", 2D) = "white" {}
}
有没有可能我可以把它变成一个数组,这样我就不需要声明这么多纹理了?