Skip to content

fix(fill-style): Improve accuracy at high zooms - #10633

Merged
Pessimistress merged 1 commit into
masterfrom
felix/fill-style-origin-full
Sep 2, 2026
Merged

Pessimistress merged 1 commit into
masterfrom
felix/fill-style-origin-full

Conversation

@felixpalmer

Copy link
Copy Markdown
Collaborator

For #7600

Background

Improves accuracy at high zooms by removing common multiple from pattern origin

Current behavior
Screen.Recording.2026-09-02.at.11.38.28.mov

Change List

  • Compute common frame of texture patterns and subtract from uvCoordinateOrigin to improve accuracy
  • Tests

@greptile-apps

greptile-apps Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR improves fill-pattern precision at high zoom by reducing the shader coordinate origin modulo a common pattern frame.

  • Computes a common frame from pattern dimensions and constant pattern scale.
  • Passes the common frame into the fill shader and reduces the coordinate origin before generating uniforms.
  • Adds WebGL tests for high-zoom origin reduction, data-driven scales, and pixel-unit zoom behavior.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
modules/extensions/src/fill-style/fill-style-extension.ts Computes and forwards a common pattern frame derived from atlas dimensions and a constant scale.
modules/extensions/src/fill-style/shader-module.ts Reduces the common coordinate origin by the shared pattern period before producing UV uniforms.
test/modules/extensions/fill-style.spec.ts Adds focused WebGL coverage for origin reduction at high zoom and across scale and unit configurations.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Pattern mapping and scale] --> B[Compute common LCM frame]
  B --> C[Fill extension state]
  C --> D[Fill shader module props]
  E[Viewport coordinate origin] --> F[Reduce origin modulo pattern period]
  D --> F
  F --> G[Higher-precision UV uniforms]
Loading

Reviews (5): Last reviewed commit: "fix(fill-style): reduce pattern origin i..." | Re-trigger Greptile

@felixpalmer
felixpalmer force-pushed the felix/fill-style-origin-full branch from b1d6e6e to 59b7b7a Compare September 2, 2026 10:08
@coveralls

coveralls commented Sep 2, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.405% (+0.02%) from 82.384% — felix/fill-style-origin-full into master

@Pessimistress
Pessimistress force-pushed the felix/fill-style-origin-full branch from 8e20c81 to 9a6cf80 Compare September 2, 2026 18:00
@greptile-apps

greptile-apps Bot commented Sep 2, 2026

Copy link
Copy Markdown

Want your agent to iterate on Greptile's feedback? Try greploops.

@Pessimistress
Pessimistress merged commit dd24687 into master Sep 2, 2026
7 checks passed
@Pessimistress
Pessimistress deleted the felix/fill-style-origin-full branch September 2, 2026 18:14
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.

3 participants