Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cesium WebGL] Fragment shader compile log: ERROR: 0:430: 'clipPolygons' : no matching overloaded function found #12414

Open
huoxiaoliang opened this issue Jan 6, 2025 · 1 comment

Comments

@huoxiaoliang
Copy link

What happened?

When scene.globe.colippingPolygons does not have polygons, the slice meta shader does not add the clipPolygons method, but enableClippingPolygons is true

Reproduction steps

1.Drop down selection: Terrain
2.Inverse clipping:true
3.Click ""Remove last polygon""
...

Sandcastle example

https://sandcastle.cesium.com/#c=tVltT+M6Fv4rFtoPqdQJeWmalAF2uQwX0IJAwMxIu4wGk7itNW5cJS6d3qv+9z1+S5M0FOau7ica+5zj57wfm5TnpUAvlCxJgY5QTpbolJR0MXO/qDXncS9V36c8F5jmpHjc66M/H3OEBJ0RBisHaIxZSfpyDed0hgXleX2xTElOrnlGbmn6gxT1rWdckiu8IsX21oTwFHhgzQC65Pm5Xrst+AuFrYfVnLjnNzfnV2fAsu59fMxTpY86EdTRernqEzYf8/19dJbjZ0ZQQXKQQPMJElOCyh+rx1yRufDzRMx4OZ+SAr6mfAmCRLHQAhgRaMkLlj2QogB7wKIoVtog9XXgwUtMhQWfFgQL8rVGcVKu8tSRmI2FXKE3rHYgonWSJZww/lxBUxaDzTVKsUinyAFyXvQMJJpnfOliRgrhPD1IldASl+AnpMiQwiWtoI5CBoKL/vGn2l8/SYDrpuaUkZKIbc31erfm55xPGLmdcsHhm9FS0DT8ZFgcJQQh8M5NzlbKI5oBGY8DUID8TNCiJBloJaaWoCkShZ+QEuoidA9YpKQnE0lPaF7wORhihfhY7ZiwVzFTLFKQg/hcRm+JBEc7483ViDnA/VyC/b4CJI3ovIpbGTQqlNd1L88LOqOCvgBGnGVO3XS919woEXJGXMYnztOZchzjOJN+e0V/yE4l0uDcdifY+iTLLJm0iLQOl+aVReB5QZm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O+r45xiM7LgsYWe8YGoMfdw7PtwH+i1W8zx9A32V4ZUkm/rHV3rRdd3Dffjs5hT6RgcsVpNDYW7e+myaj/ktzgmrkUiiZ56tagtyqWh8y5Xs+IqMhb56yMdwrJ6OAaUgPwEV7Dck7LdEdIu8o5NpS6acJczIbN/cq4eHtHq2evNE+GyoBd/SFtZoNQP+Dw

Environment

Browser:Chorm
CesiumJS Version:1.125
Operating System:win10

@ggetz
Copy link
Contributor

ggetz commented Jan 6, 2025

Thanks for the report @huoxiaoliang!

I can reproduce the issue.
image

To solve this, we would want to make sure GlobeSurfaceTileProvider correctly sets enableClippingPolygons to false when there are no polygons.

@ggetz ggetz added good first issue An opportunity for first time contributors onramping category - terrain and imagery and removed needs triage labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants