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

excaliburjs / Excalibur / 5460148499 / 1
89%
main: 89%

Build:
DEFAULT BRANCH: main
Ran 05 Jul 2023 03:24AM UTC
Files 206
Run time 2s
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

05 Jul 2023 03:18AM UTC coverage: 91.778% (+0.01%) from 91.766%
5460148499.1

push

github

web-flow
feat: Custom Material/Shader per Actor (#2670)


![material](https://github.com/excaliburjs/Excalibur/assets/612071/7e4da90b-278b-40b3-8bad-b98741656f18)

This PR adds custom material support which enables the custom shader per Actor. To do this there is a new `ex.MaterialRenderer` plugin which takes over from the default batch renderer (`ex.ImageRenderer`) if there is a material present then it will run the custom shader attached to the material. This works by setting `ex.GraphicsComponent.material = someMaterial`

```typescript
const material = new ex.Material({
  name: 'test',
  fragmentSource,
  color: ex.Color.Red,
});

const actor.graphics.material = material;
```


## Changes:

- GraphicsComponent material support for whole actor shader support
- Graphics context material support in save/restore
- New ex.MaterialRenderer plugin
- Updates to draw call to support materials

## TODOs
* [x] Tests
* [x] API cleanup
* [x] Perf analysis

4472 of 5634 branches covered (79.38%)

10414 of 11347 relevant lines covered (91.78%)

26358.26 hits per line

Source Files on job 5460148499.1
  • Tree
  • List 0
  • Changed 108
  • Source Changed 0
  • Coverage Changed 108
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5460148499
  • 357a72b2 on github
  • Prev Job for on main (#5459462110.1)
  • Next Job for on main (#5465215408.1)
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