• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

excaliburjs / Excalibur / 7284323022
89%

Build:
DEFAULT BRANCH: main
Ran 21 Dec 2023 05:23AM UTC
Jobs 1
Files 194
Run time 13s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Dec 2023 05:19AM UTC coverage: 91.82% (-0.01%) from 91.83%
7284323022

push

github

web-flow
feat: Materials can now use the screen texture (#2849)


https://github.com/excaliburjs/Excalibur/assets/612071/ade92ec3-caff-4835-8410-74f4ebbbe421

This PR adds a new feature for materials that allows them to reference the screen texture. They way it works is it's the screen's framebuffer RIGHT before the material draw call (if you include the complete drawing you get the infinite mirror artifact which is pretty unusable)

2 new uniforms

* `u_screen_texture` - This is the texture of the screen right before the material draw call
* `u_time_ms` - This is the milliseconds since page navigation (`performance.now()` under the hood)

2 new attribute/varyings

* `a_screenuv` - The vertex attribute corresponding to the screen uv relative to the current graphic
* `v_screenuv` - The fragment varying corresponding to the screen uv relative to the current graphic

Finally there is a new convenience api for updating shader values in materials. `.update(shader => {...})`

```typescript
  game.input.pointers.primary.on('move', evt => {
    heartActor.pos = evt.worldPos;
    swirlMaterial.update(shader => {
      shader.trySetUniformFloatVector('iMouse', evt.worldPos);
    });
  });
```

4590 of 5750 branches covered (0.0%)

35 of 35 new or added lines in 3 files covered. (100.0%)

10 existing lines in 2 files now uncovered.

10675 of 11626 relevant lines covered (91.82%)

27107.07 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
5
88.89
-11.11% src/engine/Graphics/FontCache.ts
5
93.3
-2.79% src/engine/Loader.ts
Jobs
ID Job ID Ran Files Coverage
1 7284323022.1 21 Dec 2023 05:23AM UTC 194
91.82
GitHub Action Run
Source Files on build 7284323022
  • Tree
  • List 194
  • Changed 64
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7284323022
  • 48325776 on github
  • Prev Build on main (#7184863341)
  • Next Build on main (#7284329166)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc