public void ClearColor(BrushMask bm) { foreach (Vertex uvi in uvpoints) { bm.Transfer(ref uvi._color, Color.black); } }
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); } } }
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; }
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; }