Skip to content

Fix PolylineGlowMaterial rendering issue on Ubuntu (#13632)#13633

Merged
mzschwartz5 merged 2 commits into
CesiumGS:mainfrom
cyzhao-dad:fix/glow-material-linux-edge
Jul 20, 2026
Merged

Fix PolylineGlowMaterial rendering issue on Ubuntu (#13632)#13633
mzschwartz5 merged 2 commits into
CesiumGS:mainfrom
cyzhao-dad:fix/glow-material-linux-edge

Conversation

@cyzhao-dad

@cyzhao-dad cyzhao-dad commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #13632

Description

Fixed an error in the usage of the clamp function in PolylineGlowMaterial shader: the parameter order was incorrect (clamp(0.0, 1.0, glow) instead of clamp(glow, 0.0, 1.0)), which caused the alpha value to always be 1.0 regardless of the glow intensity. This fixes the rendering issue where PolylineGlowMaterial did not display correctly on Ubuntu systems.

Issue link: #13632

Testing Done

Sandcastle example

The existing Sandcastle example polyline can be used to verify the fix:

  • File: packages/sandcastle/gallery/polyline/main.js
  • The glowingLine entity uses PolylineGlowMaterialProperty with glowPower: 0.2, taperPower: 0.5, color: Cesium.Color.CORNFLOWERBLUE.

Steps to reproduce and verify

  1. Run the Sandcastle polyline example on Ubuntu before the fix → the glowing blue line renders incorrectly (alpha is always 1.0, glow effect is lost).
  2. Apply the fix → the glowing blue line renders correctly with proper glow intensity and transparency.

ESLint & unit tests

  • Ran full ESLint, no warnings/errors
  • All existing unit tests pass

AI Compliance

  • This contribution was developed by the contributor. AI tools were used only for code review and documentation assistance, not for generating the core fix.
  • The contributor has reviewed and takes full responsibility for all changes.

Signed-off-by: zhaochen 453157936@qq.com

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Thank you for the pull request, @cyzhao-dad! Welcome to the Cesium community!

In order for us to review your PR, please complete the following steps:

Review Pull Request Guidelines to make sure your PR gets accepted quickly.

Fixed incorrect clamp function argument order in PolylineGlowMaterial shader.
The original code used clamp(0.0, 1.0, glow) instead of clamp(glow, 0.0, 1.0),
which caused the alpha value to always be 1.0 regardless of the glow intensity.
This fixes the rendering issue where PolylineGlowMaterial did not display
correctly on Ubuntu systems.

Signed-off-by: zhaochen <453157936@qq.com>
@cyzhao-dad
cyzhao-dad force-pushed the fix/glow-material-linux-edge branch from b1c326c to 56ed93a Compare July 17, 2026 05:10
Signed-off-by: zhaochen <453157936@qq.com>
@mzschwartz5

mzschwartz5 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Hi @cyzhao-dad - thank you for the contribution! If you can sign the Contributor License Agreement, I'll approve the GitHub actions to run and we can get this merged when they pass.

Also, in the meantime, can you please fill out the description of this PR - add testing instructions (an example sandcastle would be ideal), link an issue if there is one, and fill in the AI acknowledgement.

@javagl

javagl commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Probably supposed to fix #13632

@cyzhao-dad

Copy link
Copy Markdown
Contributor Author

this is ready

@mzschwartz5 mzschwartz5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks again @cyzhao-dad

@mzschwartz5
mzschwartz5 added this pull request to the merge queue Jul 20, 2026
Merged via the queue into CesiumGS:main with commit eab72bb Jul 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Glow line material renders abnormally on Ubuntu 24.04 + Microsoft Edge 150

3 participants