I cant think of a way to achieve what I am after. I am trying to color all the points left of the red line ,black (See image). Here is a snippet of how I am currently applying the colors.
int halfway = (int)((tileResolution * gridSize) / 2);
for (int y = 0; y< (int)(tileResolution* gridSize); y++)
{
for (int x = 0; x< (int)(tileResolution* gridSize); x++)
{
if (x >= halfway && y >= halfway)
{
tex.SetPixel(x, y, Color.white);
}
else {
tex.SetPixel(x, y, Color.black);
}
}
}
I did think of a possibility but even so, I cant think of a way to implement it.
Hopefully someone has some ideas! Thanks