CesiumGS / CesiumGS/cesium

BufferPolylineCollection: Missing czm_pixelRatio handling

Open Beginner friendly
#13,591 0 comments 0 reactions 0 assignees View on GitHub
category - vector data type - bug
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

### What happened?

BufferPolylineCollection is missing czm_pixelRatio in VS, causing line.width to render inconsistently on high-DPI vs. low-DPI displays.

### Reproduction steps

Compare:

- https://github.com/CesiumGS/cesium/blob/0dfbb658266fd1a4f6961dc51a5d260de1a81cf8/packages/engine/Source/Shaders/BufferPointMaterialVS.glsl#L29-L30
- https://github.com/CesiumGS/cesium/blob/0dfbb658266fd1a4f6961dc51a5d260de1a81cf8/packages/engine/Source/Shaders/BufferPolylineMaterialVS.glsl

### Sandcastle example

_No response_

### Environment

n/a

### AI acknowledgment

- [ ] I used AI to generate this issue report.
- [ ] (If the above is checked) I have reviewed the AI-generated content before submitting.

Contributor guide

Open the contributing guide

Research direction

Start by comparing packages/engine/Source/Shaders/BufferPolylineMaterialVS.glsl with BufferPointMaterialVS.glsl at the referenced lines, focusing on how pixel ratio is handled. Verify the polyline shader applies the equivalent handling so line.width renders consistently on high-DPI and low-DPI displays.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
84/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.