microsoft / MapsSDK-Unity

This repository contains samples, documentation, and supporting scripts for Maps SDK, a Microsoft Garage project.
MIT License
652 stars 127 forks source link

Override Alpha #137

Closed mlathrop-bell closed 3 years ago

mlathrop-bell commented 3 years ago

We often find that we are pulling map tiles from a 3rd party source and want to change the transparency of the layers. Is there a way to override (or perhaps multiply?) the alpha values by another value? I tied to look into the code, but I can't find the source for TileTextureLayer. Any ideas on how to accomplish this on a per HttpTextureTileLayer basis? We are hoping to avoid having to proxy the HTTP requests and rewrite the alpha values ourselves.

kircher1 commented 3 years ago

There's probably a path to unblock this by using a custom shader, but I'll look into adding this functionality to the core SDK itself, e.g. an Opacity property on the TextureTileLayer.

kircher1 commented 3 years ago

Added in 0.11.1