CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.94k stars 3.49k forks source link

shadows of tileset does not work when using 3dtiles next #10132

Closed Gu-Miao closed 2 years ago

Gu-Miao commented 2 years ago

I find that shadows property does not work when using 3dtiles next.

const tileset = new Cesium3DTileset({
  url: 'http://xxx/xxx/xxx/tileset.json',
  backFaceCulling: false,
  shadows: ShadowMode.DISABLED,
})
Gu-Miao commented 2 years ago

Here's a pr for this:

ggetz commented 2 years ago

@ptrgags Can you verify if this is expected behavior or a regression?