如题,unity2D
struct Input
{
float2 ink;
};
half _Glossiness;
half _Metallic;
fixed4 _Color;
// Add instancing support for this shader. You need to check 'Enable Instancing' on materials that use the shader.
// See https://docs.unity3d.com/Manual/GPUInstancing.html for more information about instancing.
// #pragma instancing_options assumeuniformscaling
UNITY_INSTANCING_BUFFER_START(Props)
// put more per-instance properties here
UNITY_INSTANCING_BUFFER_END(Props)
void surf (Input IN, inout SurfaceOutputStandard o)
{
o.Albedo(Input.ink.x, Input.ink.y, 0);
}
Input 里的内容是什么,Albedo是一个什么类型,
基于对象的坐标对其染色,rgb的三个分量单独运算(对应坐标的运算)
input就是前面定义的结构体,Albedo指的就是贴图,我只能解答你的疑问,shader我也不懂,哈哈