CesiumGS / CesiumGS/cesium

Shadowing of partially transparent textures does not work correctly for alphaMode: MASK

Open
#9,260 1 comment 0 reactions 0 assignees View on GitHub
category - graphics type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

When using gltf/glb models with partially transparent textures shadowing works when using a material with alphaMode: BLEND, but not when using alphaMode: MASK

The following example is from an x-board model of a tree when using MASK:
![bilde](https://user-images.githubusercontent.com/25476272/100728168-7dfa5b80-33c7-11eb-9820-8a3de2c76aa9.png)

The same model with alphaMode BLEND:
![bilde](https://user-images.githubusercontent.com/25476272/100728499-ea755a80-33c7-11eb-82db-9a191a75c8b2.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported x-board tree case and inspect Cesium's glTF shadow-rendering path for alphaMode MASK, comparing it with the working BLEND behavior. The issue names no files or tests, so trace the rendering entry points first; done means partially transparent masked textures cast shadows correctly rather than showing the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.