Casting shadows on the facades threebox/mapboxgl

Hi,

I am working on real time shadow mapping using /jscastro76/threebox@v.2.2.2 plugin. When I cast the shadows, buildings are not blocking sun light. in fact, i should have seen the shadows on the facades too.

I thought to change the material type but it is a custom layer, and i am not very familiar with threebox plugin. Here how I added the buildings :

map.on(‘style.load’, () => {

		//// stats
		stats = new Stats();
		map.getContainer().appendChild(stats.dom);
		animate();

		if (map.getLayer('building')) {
			map.removeLayer('building');
		}
		if (map.getSource('composite')) {
			map.addLayer({
				'id': '3d-buildings',
				'source': 'composite',
				'source-layer': 'building',
				'type': 'fill-extrusion',
				'minzoom': 14,
				'paint': {
					'fill-extrusion-color': '#ddd',
					'fill-extrusion-height': ["number", ["get", "height"], 5],
					'fill-extrusion-base': ["number", ["get", "min_height"], 0],
					'fill-extrusion-opacity': 1
				}
			}, 'road-label');
		}

		tb.setBuildingShadows({ layerId: 'building-shadows', buildingsLayerId: '3d-buildings', minAltitude: 0 });
	});