nameID | 通过 Shader.PropertyToID 检索的属性的名称 ID。 |
name | 属性的名称。 |
获取纹理 propertyName
的位置偏移。
Common texture names used by Unity's builtin shaders:
"_MainTex"
is the main diffuse texture. This can also be accessed via mainTextureOffset property.
"_BumpMap"
is the normal map.
"_Cube"
is the reflection cubemap.
另请参阅:mainTextureOffset 属性、SetTextureOffset。