示例#1
0
 protected static Color Tex2D(Texture tex, Vector2 uv)
 {
     if (tex != null)
     {
         return(tex.Sample(uv.x, uv.y));
     }
     return(Color.white);
 }
示例#2
0
        //===================================================================

        protected static Color Tex2D(Texture tex, float u, float v)
        {
            if (tex != null)
            {
                return(tex.Sample(u, v));
            }
            return(Color.white);
        }