[style-spec] client-side hill-shading source/layer/properties #4711
Labels
cross-platform 📺
Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.)
needs discussion 💬
As we prepare to add a new layer type for rendering hill-shading on the client using a tiled DEM, we need to discuss the associated style-spec properties that will need to be added.
The plan right now is to initially release the hill-shading functionality using the terrain-rgb raster tiles as the source.
The properties in @kkaefer's original implementation using encoded DEM in a vector tile feature he added the following properties:
terrain-shadow-color
: The color of the terrain that faces away from the light source.terrain-highlight-color
: The color of the terrain that faces towards the light source.terrain-accent-color
: The color used to accentuate rugged terrain with sharp cliffs and gorges.terrain-illumination-direction
: Direction of the light source. Defaults to top left.terrain-illumination-alignment
: Direction of the light source when the map is rotated.viewport
ormap
terrain-exaggeration
: Intensity of the terrainNow that we have a global
light
I imagine the last three can be replaced with the global light properties.Opening this ticket to start discussing naming and additional properties we may need. @andrewharvey has suggested we call this layer type
hillshade
and save theterrain
layer type for use with 3d mesh terrain (feature request #1489 )cc @mapbox/gl @mapbox/cartography-cats
The text was updated successfully, but these errors were encountered: