Skip to content
Snippets Groups Projects
bart's avatar
Knuiman, Bart authored
6759bf8a
History

VectorTiles (HDRP)

Can download a vector tile from a TMS service and can convert the tile to a raster for basing a terrain upon it.

Dependencies (GIT Pacakages)

  • utils

Usage:

var tile = VectorTile.FromUrl( url );
tile.ForEach( width=1024, height=1024, (x, y, feature) => 
{
	// x and y in pixel space starting at: [0, 0]
	switch( feature )
	{
	}
});

Texture2D texture = tile.RenderToTexture( width=1024, height=1024, layers );