CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
358 stars 83 forks source link

No Environment Lighting in CesiumDefaultTileset Shader #341

Closed timcreatedit closed 1 year ago

timcreatedit commented 1 year ago

When using the CesiumDefaultTilesetMaterial on a tileset, shadows are always completely black. The Material doesn't seem to be affected by environment lighting from the Lighting Settings window. Screenshot 2023-06-30 at 22 38 33@2x

timcreatedit commented 1 year ago

It seems to be due to the way Ambient Occlusion is set up in the shader, it ends up with a value of 0 if there are no textures

j9liu commented 1 year ago

337 addresses this issue, and it has been merged into main. Feel free to try the changes now, or wait until the upcoming release. Let us know if the issue still persists.