generateVertexTexCoords method
- Vector2List texCoords,
- Vector3List positions,
- 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);
}
}
}