|
|
@@ -1054,25 +1054,33 @@ void UpdateGrid(bool updateGridGeometry = true)
|
|
|
{
|
|
|
grid.DefineVertex(Vector3(lineOffset, 0.0, halfSizeScaled));
|
|
|
grid.DefineColor(lineCenter ? gridZColor : (lineSubdiv ? gridSubdivisionColor : gridColor));
|
|
|
+ grid.DefineTexCoord(Vector2(0.0f, 0.0f));
|
|
|
grid.DefineVertex(Vector3(lineOffset, 0.0, -halfSizeScaled));
|
|
|
grid.DefineColor(lineCenter ? gridZColor : (lineSubdiv ? gridSubdivisionColor : gridColor));
|
|
|
+ grid.DefineTexCoord(Vector2(0.0f, 0.0f));
|
|
|
|
|
|
grid.DefineVertex(Vector3(-halfSizeScaled, 0.0, lineOffset));
|
|
|
grid.DefineColor(lineCenter ? gridXColor : (lineSubdiv ? gridSubdivisionColor : gridColor));
|
|
|
+ grid.DefineTexCoord(Vector2(0.0f, 0.0f));
|
|
|
grid.DefineVertex(Vector3(halfSizeScaled, 0.0, lineOffset));
|
|
|
grid.DefineColor(lineCenter ? gridXColor : (lineSubdiv ? gridSubdivisionColor : gridColor));
|
|
|
+ grid.DefineTexCoord(Vector2(0.0f, 0.0f));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
grid.DefineVertex(Vector3(lineOffset, halfSizeScaled, 0.0));
|
|
|
grid.DefineColor(lineCenter ? gridYColor : (lineSubdiv ? gridSubdivisionColor : gridColor));
|
|
|
+ grid.DefineTexCoord(Vector2(0.0f, 0.0f));
|
|
|
grid.DefineVertex(Vector3(lineOffset, -halfSizeScaled, 0.0));
|
|
|
grid.DefineColor(lineCenter ? gridYColor : (lineSubdiv ? gridSubdivisionColor : gridColor));
|
|
|
+ grid.DefineTexCoord(Vector2(0.0f, 0.0f));
|
|
|
|
|
|
grid.DefineVertex(Vector3(-halfSizeScaled, lineOffset, 0.0));
|
|
|
grid.DefineColor(lineCenter ? gridXColor : (lineSubdiv ? gridSubdivisionColor : gridColor));
|
|
|
+ grid.DefineTexCoord(Vector2(0.0f, 0.0f));
|
|
|
grid.DefineVertex(Vector3(halfSizeScaled, lineOffset, 0.0));
|
|
|
grid.DefineColor(lineCenter ? gridXColor : (lineSubdiv ? gridSubdivisionColor : gridColor));
|
|
|
+ grid.DefineTexCoord(Vector2(0.0f, 0.0f));
|
|
|
}
|
|
|
|
|
|
lineOffset += scale;
|