CesiumPolygonRasterOverlay Cliping can not work when use HDRP
XudongZhou opened this issue · 7 comments
I test in unity2022.3 and Unity6000,
The CesiumPolygonRasterOverlay has the same bug.
CesiumPolygonRasterOverlay Can not Clip when use HDRP,but URP work fine.
Thanks for the bug report @XudongZhou. Can you please confirm what version of Cesium for Unity you're using?
Thanks for the bug report @XudongZhou. Can you please confirm what version of Cesium for Unity you're using?
the unity version is 2022.3.40,the Cesium for Unity version is 1.11.0;
The effect is as follows:
I can't tell quite what I'm looking at in that screenshot. Is it correctly discarding whole tiles, but not clipping the ones that are partially inside the polygon? If that's the case, are you by any chance using a custom Material on this tileset? The clipping of partially-overlapping tiles is done by the Material.
I can't tell quite what I'm looking at in that screenshot. Is it correctly discarding whole tiles, but not clipping the ones that are partially inside the polygon? If that's the case, are you by any chance using a custom Material on this tileset? The clipping of partially-overlapping tiles is done by the Material.
1、No material assigned
2、The first screenshot shows that when the camera is zoomed in, some of the image blocks will be clipping.The second screenshot shows that when the camera is pulled away, it is not clipping
Thanks for the bug report @XudongZhou. Can you please confirm what version of Cesium for Unity you're using?
the unity version is 2022.3.40,the Cesium for Unity version is 1.11.0;
The effect is as follows:
sorry,there is a problem with the screenshot;
The blue line is spline.
Yeah that behavior is consistent with the tile exclusion working correctly, but the material-based pixel exclusion not working. In other words, there is something wrong with the Material in HDRP. It could be as simple as "Alpha Clipping" is disabled on the HDRP material. I will investigate when I get a chance.
Yeah I copy the "CesiumDefaultTilesetShader" and changed "Alpha Clipping" to enabled, then create a material with it instead of the default material in Cesium3DTileset component, worked fine in HDRP.