CesiumGS / cesium-unity

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

Error compiling shaders when building for android #454

Open Faalvare opened 7 months ago

Faalvare commented 7 months ago

giving me this error on cesium 1.9.0 for unity 2021.3.10f1 using URP : Shader error in 'Cesium/CesiumDefaultTilesetShader': maximum ps_5_0 sampler register index (16) exceeded at line 6450 (on gles3)

also this warning from the same shader: Shader warning in 'Cesium/CesiumDefaultTilesetShader': implicit truncation of vector type at Files/Unity/Hub/Editor/2021.3.10f1/Editor/Data/CGIncludes/UnityShadowLibrary.cginc(60) (on gles3)

j9liu commented 6 months ago

Hi @Faalvare,

What graphics API are you using to build? Does it make a difference if you switch to a different one? (e.g. Vulkan vs. OpenGL)

reefbreak commented 6 months ago

Same issue