Polygon material uses images, but the image is reversed

1. A concise explanation of the problem you're experiencing.

Polygon material uses images, but the image is reversed.
cesium 1.47,Polygon material uses pictures, and pictures are normal,but in cesium1.48 cesium1.49 cesium1.50 Polygon material uses images, but the image is reversed

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

            var addPolygon = viewer.entities.add({
                polygon: {
                    hierarchy: polygonPositionsC,
                    height: 0.5,
                    perPositionHeight: true,
                    material: "./img/camera/44.png"
                }
            });

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you're using, your operating system and browser.
Chrome cesium 1.47 1.48 1.49 1.50

Hey,

I’m having trouble recreating this. Here’s a polygon with an image material in 1.47.

Cesium 1.47 Sandcastle link.

And here’s in 1.50:

Cesium 1.50 Sandcastle link.

They look identical to me. Can you provide a screenshot or if possible Sandcastle links as above so I can compare the 1.47 and 1.50 versions? You can click “Share” in Sandcastle and then you can share that link.

Thank you for your reply
this is 1.47
https://cesiumjs.org/releases/1.47/Apps/Sandcastle/index.html#c=rVRtT9swEP4rp35JK2UxBaFJpaAhtrFKMNDo9mWZkONcEgvHjvzSLkz8911eqgL7NAkrSpy7ex7f+R6bMVhX0gE9XAP+5nWjEEwBwUldwgU6GWpIJzdFoaTGdBJDjVx3vlw6YbRG4TGHwpoafIWpZoxoPFrNFax0N0GfAKw81MF5cF4qBRmCQ7vZATkoIyh+i9lgtzFkwfdkuUEH2niwqFowmvKkT/BO5kg2Z4IVFGFsj5Q0p9U+029tLILUhYnJg4uerPK+cQvGSumrkCXC1OycEm29pOUvLW8qKdxKCyb6wtlWPkg21v7uMtCSqU71hlvYSNyihVPQuB23KfnR26bRAL4w2nPC2SiGP6kGGrLmJdr21poNUVlY7JDCIve4lgqveXM31LF6GTwdOboRrNpjsyBVfm3yoPC7VdPo3Dn0jq2pC4H2h33l9OXqE7e+Wq2i2UDzNIuHScYdXvEW7a0UD31OBVcOR2+JRph8b0710+xktwcW81uj2pKacjpuSILaSy+pCTzPdylrXiMRRN+o380IoMcFW3CB0bjUzrOAZ5VWEi23omr39V5QITTj+ijpxPMRS4vozq3l7ReUZeXd9Od8fpwcxHD0nt7zg27Ee87/HTuywzchO3jfkx29DdlhTzZ/S7Ku2PlxR/Zr9oyuJoFayTvhRUnCeik7NvTk/sqU5t7QuVW8TRpdRs+ADUnLOBKF0UN/Ft4GHFU46mkUz6Mx9dpMX0lpdjKJJ0vnW4VnA+yDrBtjfXcOppSLR7q1KD3HskAa9olwrmNdsh1omcsNyPw0nbw6m+kEhOLOkacISt3JR7rjzpaM4l/AlOE5XXo3Q4ldSDU/uxqMSZIsGf3+i/LGqIzbZ4x/AQ

this is 1.50
https://cesiumjs.org/releases/1.50/Apps/Sandcastle/index.html#c=rZNva9swEMa/isgbOxDkuKEU0jSsZIMF0i2s2d7Uo1ysiyMmS+Yku3NLv/tkO8Fp+2qQw9j69/x8Jz2qgFgl8QmJ3TCNT2yBVpY5/9WOhUHadhdGO5AaKRixl0QzHzKHDKlek6mk8OrpUZkSgsONVHgHxT1SJVNcvl0cHhhNlKR67baUStwZUSr8SSoMbq1FZ6MN/nUloY2+gf+C+gLk9stlMOwwr8NR19iCxRXUSGuZ/mlz2oGyeJjN0KRG9MOJfh1eJzrRld8DQrE2qs6M9vvQbQhH7aSTaDkIcUxZQ44eEPxAwYqDwD+2pB2kGBx+dZyZspNK9xIJKN3Xfb0LX4hvgZ7wHZn8M2aEaG+JoP6KMts7Gz7E8SUfj9jkyr/jcROjnvm/cYRdnAU2vmphk/PALlpYfE5YU2x82cB+D09wuTcoSWiMF3AetVa2UXcmjyuTmUdTISmoeaGz4ERYeGsZ601hdHc+U0clHlzY+6mzz7Mx+caE78w0vB6MBjPraoXzTvhJ5oUh19yE0GfjMC+UT9BG29K72PHU2oY7i46imZAVk+ImGby7ncmApQqs9TO7Uql7+YzJYD6L/Po3MmVASJ1974psluzj+aob5JzPIt/9qHLGqC3QCfEf

Thanks for the test cases! I believe is the same issue as here:

https://groups.google.com/d/msg/cesium-dev/CSQeUtcSj_4/_ridnkKxCAAJ

There’s an open PR that fixes this:

I’ll make sure it covers this case as well. The fix should be available in CesiumJS 1.51.

This fix has just been merged! So the polygon will now always face away from the ellipsoid so the material should appear correctly.