# 【UnityShader常用属性参数】
_BaseColor("基础颜色",Color) = (1.0,1.0,1.0,1.0)
_NormalMap("法线贴图",2d) = "bump" {}
_SpecularPower("高光次幂",Range(0,100)) = 1.0
_Cubemap ("环境球", Cube) = "_Skybox" {}
_Colmun ("Colmun", float) = 1.0
_Center ("向量", Vector) = (0,0,0,0)
[Toggle]
_Bool ("Bool", float) = 0.0
# 使纹理贴图的重复和缩放生效
uniform sampler2D _MainTex;
uniform float4 _MainTex_ST;// 重点
VertexOutput vert(VertexInput i)
{
VertexOutput o = (VertexOutput)0;
o.uv = i.uv0;
o.uv0 = TRANSFORM_TEX(i.uv0,_MainTex);// 重点
}