unityshader(属性)

_Color("Color",Color)=(1,1,1,1)//RGBA

_Vector("vector",Vector)=(1,2,3,4) //,fixed4 
 _Int("int",Int)=123
 _Float("float",Float)=5.5
 _Range("range"Range(1,10))=5  
 _2D("texture",2D)="white"{}  
 _Cube("cube",Cube)="white"{}//cube是天空盒子。
 _3D("texture",3D)="white"{}//3d纹理
float,half,fixed的区别
float存32位
half存16位:-6万~6万
fixed存11位:-2~2
原文地址:https://www.cnblogs.com/shirln/p/7771167.html