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.73k stars 3.45k forks source link

Viewer Crashes on Scene.pick when globe.clippingPolygon is enabled #12045

Open saadatali48 opened 2 months ago

saadatali48 commented 2 months ago

What happened?

I have an entity which has mouse over event enabled, and I am picking the entity using scene.pick as shown below. const pickedObject = viewer.scene.pick(movement.endPosition); This is throwing an error [Cesium WebGL] Fragment shader compile log: ERROR: 0:424: 'clipPolygons' : no matching overloaded function found

This is happening only when I have enabled globe.clippingPolygons.

Reproduction steps

1.https://youtu.be/RljMIWEXMvk 2. 3. ...

Sandcastle example

No response

Environment

Browser: Chrome CesiumJS Version: 1.118 Operating System: Windows 11

ggetz commented 2 months ago

Got it, we'll take a look.

In the future, please include a Sandcastle example that replicates the issue. That would help us give us more context to determine the issue. Thanks!