mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.18k stars 2.22k forks source link

3D building light emission bug with terrain turned on #12875

Open Beilinson opened 1 year ago

Beilinson commented 1 year ago

Enabling terrain with the new 3d models with lighting creates a strange effect where the light appears much higher than the actual model, floating in the sky.

3.0.0-pre1:

firefox:

Steps to Trigger Behavior

Enable Terrain on the new standard style, exaggeration: 1

Terrain turned off:

image

Terrain turned on:

image

stepankuzmin commented 1 year ago

Hi @Beilinson,

Thanks for filling in the issue. This will be fixed in the GL JS v3 stable release.