bertt / mapbox_3dtiles_samples

Samples of MapBox JS + 3D Tiles
MIT License
57 stars 11 forks source link

Added lighting options in Mapbox3DTiles + example #2

Closed B-de-V closed 4 years ago

B-de-V commented 4 years ago

Mapbox3DTiles: added new parameter which sets different lighting options. The lighting option can be set to 'ambient', 'hemisphere' or 'directional'. Leaving this option open results to no lighting. Example: { id: 'id', url: 'tileset.json', lighting: 'ambient' }

The added lighting_example.html showcases the 3 options. ambient_emissive.html is removed.

bertt commented 4 years ago

👍