# Alpha texture problem ,gltf and 3DTiles

**URL:** <https://community.cesium.com/t/alpha-texture-problem-gltf-and-3dtiles/21733>\
**Category:** CesiumJS\
**Created:** [December 28, 2022, 8:59am UTC](https://community.cesium.com/t/alpha-texture-problem-gltf-and-3dtiles/21733 "2022-12-28T08:59:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cccCesium](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ccccesium/32/1987_2.png) [@cccCesium](https://community.cesium.com/u/cccCesium)\
**Post date:** [December 28, 2022, 8:59am UTC](https://community.cesium.com/t/alpha-texture-problem-gltf-and-3dtiles/21733/1 "2022-12-28T08:59:37Z")

</div>

Hello  
I’m faced with a problem of rendering gltf alpha texture.  
I tried to render “AlphaBlendModeTest.gltf” , from KhronosGroup sample.  
I got different results between rendering as entity gltf model and as 3DTiles converted from gltf.  
Which is a right result ? I thought opaque\_mode and cutoff\_mode of 3DTiles rendering are not right.

gltf is converting to 3DTiles with Cesium Ion.  
Cesium version is 1.95.

Thank you.

 ![3dtiles](https://global.discourse-cdn.com/cesium/original/3X/f/4/f47bf3f936d52792c7f202ea5f56d63c3bae16ca.jpeg)  
 ![gltf](https://global.discourse-cdn.com/cesium/original/3X/4/d/4dca49a61cfc1e6551f01ca64df917169c7cf679.jpeg)

---

<div class="post-metadata">

**Author:** ![cccCesium](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ccccesium/32/1987_2.png) [@cccCesium](https://community.cesium.com/u/cccCesium)\
**Post date:** [February 2, 2023, 3:22am UTC](https://community.cesium.com/t/alpha-texture-problem-gltf-and-3dtiles/21733/2 "2023-02-02T03:22:29Z")

</div>

Additional infornatiin…

Converting flow is as bellow.  
Is there anyone who knows about this problem?

 ![image](https://global.discourse-cdn.com/cesium/original/2X/e/e9ad360ff43513532b2c0c555e4c8b136f94c5cb.jpeg)

---

<div class="post-metadata">

**Author:** ![Marco13](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/marco13/32/2757_2.png) [@Marco13](https://community.cesium.com/u/Marco13)\
**Post date:** [February 3, 2023, 2:26pm UTC](https://community.cesium.com/t/alpha-texture-problem-gltf-and-3dtiles/21733/3 "2023-02-03T14:26:54Z")

</div>

This is not yet a solution, but just a comment for now: The resulting asset in the 3D Tiles case seems to use the same material for the different elements. This might be caused by the fact that the materials are _nearly_ equal: They only differ in the opacity and alpha cutoff values. But this looks like a clear bug. It is already tracked internally, but the reason for why this happens this still has to be investigated.

---

<div class="post-metadata">

**Author:** ![Gabby\_Getz](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/gabby_getz/32/7838_2.png) [@Gabby\_Getz](https://community.cesium.com/u/Gabby_Getz)\
**Post date:** [February 3, 2023, 8:00pm UTC](https://community.cesium.com/t/alpha-texture-problem-gltf-and-3dtiles/21733/4 "2023-02-03T20:00:48Z")

</div>

@cccCesium If you have some additional bandwidth to help troubleshoot, please let us know. We’d be happy to advise and to review a potential fix. Thanks!

---

<div class="post-metadata">

**Author:** ![cccCesium](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ccccesium/32/1987_2.png) [@cccCesium](https://community.cesium.com/u/cccCesium)\
**Post date:** [February 6, 2023, 3:48am UTC](https://community.cesium.com/t/alpha-texture-problem-gltf-and-3dtiles/21733/5 "2023-02-06T03:48:34Z")

</div>

Thank you for replying.

I tried another method.  
When I composite copied 5 layers ,original MASK mode is inherited in 3DTiles.  
Strangely enough, some of textures are not fit this pattern. They can inherit their alpha mode to 3DTiles without compositing layers. I don’t know what is the difference between them, though it seems to be associated with contrast.

Thnak you.

 ![image](https://global.discourse-cdn.com/cesium/original/3X/a/1/a1fd73466419139034fe6715acaf14b1ae49e790.jpeg)

---

<div class="post-metadata">

**Author:** ![cccCesium](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ccccesium/32/1987_2.png) [@cccCesium](https://community.cesium.com/u/cccCesium)\
**Post date:** [June 18, 2025, 1:05pm UTC](https://community.cesium.com/t/alpha-texture-problem-gltf-and-3dtiles/21733/6 "2025-06-18T13:05:54Z")

</div>

Hello support team,

We are continuing to pay close attention to transparency handling in glTF files.

With the release of 3D Tiles 1.1, it’s now possible to reference glTF files directly in `tileset.json`, and the rendering results between 3D Tiles and standalone glTFs have become consistent.

However, it seems that shadows are still not generated correctly in CesiumJS when using glTF materials with various `alphaMode` settings.

We would like to know the current status of CesiumJS’s support for shadow rendering in relation to glTF’s `alphaMode` (such as `"MASK"` and `"BLEND"`).

Thank you

sample [glTF-Sample-Assets/Models/AlphaBlendModeTest/README.md at main · KhronosGroup/glTF-Sample-Assets · GitHub](https://github.com/KhronosGroup/glTF-Sample-Assets/blob/main/Models/AlphaBlendModeTest/README.md)

 ![image](https://global.discourse-cdn.com/cesium/original/3X/8/f/8fe5b3dc373278ef8d16de6b964e337dc7fccea3.jpeg)
