public void AddPoint(Rect rect, Color color)
{
RenderChunk renderChunk = this.GetRenderChunk();
int count = renderChunk.vertices.Count;
renderChunk.vertices.Add(new Vector3(rect.xMin, rect.yMin, 0f));
renderChunk.vertices.Add(new Vector3(rect.xMax, rect.yMin, 0f));
renderChunk.vertices.Add(new Vector3(rect.xMax, rect.yMax, 0f));
renderChunk.vertices.Add(new Vector3(rect.xMin, rect.yMax, 0f));
renderChunk.colors.Add(color);
renderChunk.colors.Add(color);
renderChunk.colors.Add(color);
renderChunk.colors.Add(color);
renderChunk.uvs.Add(new Vector2(0f, 0f));
renderChunk.uvs.Add(new Vector2(1f, 0f));
renderChunk.uvs.Add(new Vector2(1f, 1f));
renderChunk.uvs.Add(new Vector2(0f, 1f));
renderChunk.indices.Add(count);
renderChunk.indices.Add(count + 1);
renderChunk.indices.Add(count + 2);
renderChunk.indices.Add(count);
renderChunk.indices.Add(count + 2);
renderChunk.indices.Add(count + 3);
renderChunk.isDirty = true;
}