unity shader 世界坐标的获取和albedo的类型

问题遇到的现象和发生背景

如题,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我也不懂,哈哈

img

img