generateVertexTexCoords method

  1. @override
void generateVertexTexCoords (Vector2List texCoords, Vector3List positions, Uint16List indices)
override

Implementation

@override
void generateVertexTexCoords(
    Vector2List texCoords, Vector3List positions, Uint16List indices) {
  int i = 0;
  for (int y = 0; y <= _latSegments; ++y) {
    final double v = y / _latSegments;

    for (int x = 0; x <= _lonSegments; ++x) {
      final double u = x / _lonSegments;
      texCoords[i++] = new Vector2(u, v);
    }
  }
}