CesiumGS / cesium-unity

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

Apply KHR_texture_transform in Unity #385

Closed joseph-kaile closed 7 months ago

joseph-kaile commented 9 months ago

Moved implementation of KHR_texture_transforrm extension from the native side to the Unity side. The scale and offset values are now passed to the material and the shader applies them to the UVs.

j9liu commented 8 months ago

Well, with the latest commits I pushed, texture transforms are now working in Unity... in Debug builds only :')

j9liu commented 8 months ago

Well, upon a fresh install / rebuild of Cesium for Unity, I'm not getting the above errors anymore. So I guess something was really wrong with my environment 🤷

Anyway, this is ready for review!

kring commented 7 months ago

This works well and the code looks great. Thanks @joseph-kaile and @j9liu!