generateVertexTexCoords method

void generateVertexTexCoords (Vector2List texCoords, Vector3List positions, Uint16List indices)

Implementation

void generateVertexTexCoords(
    Vector2List texCoords, Vector3List positions, Uint16List indices) {
  for (int i = 0; i < positions.length; ++i) {
    final Vector3 p = positions[i];

    // These are TERRIBLE texture coords, but it's better than nothing.
    // Override this function and put better ones in place!
    texCoords[i] = new Vector2(p.x + p.z, p.y + p.z);
  }
}