Exemple #1
0
 public void ClearColor(BrushMask bm)
 {
     foreach (Vertex uvi in uvpoints)
     {
         bm.Transfer(ref uvi._color, Color.black);
     }
 }
Exemple #2
0
 public void SetColorOnLine(Color col, BrushMask bm, MeshPoint other)
 {
     foreach (Vertex u in uvpoints)
     {
         if (u.ConnectedTo(other))
         {
             bm.Transfer(ref u._color, col);   //val *= u._color.GetChanel01(chan) * u.GetConnectedUVinVert(other)._color.GetChanel01(chan);
         }
     }
 }
Exemple #3
0
        public void SetShadowAll(LinearColor col)
        {
            BrushMask bm = Cfg.brushConfig.mask;//glob.getBrush().brushMask;
            Color     c  = col.ToGamma();

            foreach (MeshPoint v in meshPoints)
            {
                bm.Transfer(ref v.shadowBake, c);
            }

            Dirty = true;
        }
Exemple #4
0
        public void PaintAll(LinearColor col)
        {
            BrushMask bm = Cfg.brushConfig.mask;//glob.getBrush().brushMask;
            Color     c  = col.ToGamma();

            foreach (MeshPoint v in meshPoints)
            {
                foreach (Vertex uv in v.uvpoints)
                {
                    bm.Transfer(ref uv._color, c);
                }
            }
            //Debug.Log("Dirty");
            Dirty = true;
        }