generateVertexTexCoords method

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

Implementation

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

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