Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public override Type ModifierType
return typeof(MaterialModifier);
}
}
[Tooltip("Use image texture from the Imagery source as texture for roofs. ")]
public bool projectMapImagery;
public UvMapType texturingType = UvMapType.Tiled;
public MaterialList[] materials = new MaterialList[2];
public AtlasInfo atlasInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public override void Run(VectorEntity ve, UnityTile tile)
var min = Math.Min(_options.materials.Length, ve.MeshFilter.mesh.subMeshCount);
var mats = new Material[min];

if (!_options.projectMapImagery)
if (_options.texturingType != UvMapType.Satellite)
{
for (int i = 0; i < min; i++)
{
Expand All @@ -37,7 +37,7 @@ public override void Run(VectorEntity ve, UnityTile tile)
{
for (int i = 0; i < min; i++)
{
mats[i] = Instantiate(_options.materials[i].Materials[UnityEngine.Random.Range(0, _options.materials[i].Materials.Length)]);
mats[i] = _options.materials[i].Materials[UnityEngine.Random.Range(0, _options.materials[i].Materials.Length)];
}

mats[0].mainTexture = tile.GetRasterData();
Expand Down