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

excaliburjs / Excalibur / 5460148499
89%

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

pending completion
5460148499

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

Jobs
ID Job ID Ran Files Coverage
1 5460148499.1 05 Jul 2023 03:24AM UTC 0
91.78
GitHub Action Run
Source Files on build 5460148499
Detailed source file information is not available for this build.
  • Back to Repo
  • 357a72b2 on github
  • Prev Build on main (#5459462110)
  • Next Build on main (#5465215408)
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