Skip to content
Snippets Groups Projects
Commit 1aa8b9f0 authored by Knuiman, Bart's avatar Knuiman, Bart
Browse files

Update README.md

parent 1a8d08d5
No related branches found
No related tags found
No related merge requests found
## VectorTiles (HDRP) ## VectorTiles (HDRP)
Can download a vector tile from a TMS service and Can download a vector tile from a TMS service and
can convert the tile to a raster for basing a terrain upon it. can convert the tile to a raster for basing a terrain upon it.
### Dependencies (GIT Pacakages) ### Dependencies (GIT Pacakages)
- utils - utils
- geotiff (for height on terrain)
- vectortile (for building up from vector tile info) ### Usage:
### Usage:
```
bool cancelToken = false; // So that it can cancel when called from different thread.
``` var tile = VectorTile.FromUrl( url );
var tile = VectorTile.FromUrl( url ); byte[] controlMap = tile.RenderToTextureSingle(
tile.ForEach( width=1024, height=1024, (x, y, feature) => int resolution = 256,
{ out Dictionary<byte, byte> remappedLayerIndices,
// x and y in pixel space starting at: [0, 0] out List<Vector3Int> failedPixels,
switch( feature ) ref bool cancelToken );
{
}
}); ```
Texture2D texture = tile.RenderToTextureSingle( width=1024, height=1024, layers );
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment