Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/examples/src/examples/heatHaze/ExampleHeatHaze.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ class HazeSurface extends Sprite {
}

draw(renderer: Parameters<Sprite["draw"]>[0], viewport?: object) {
// the white sheet only carries the effect, which replaces every pixel
// of it: with no effect to run (the Canvas renderer, or a lost GPU
// context), the scene under it shows as it is
if (!this.effect.enabled) {
return;
}
const scene = renderer.toFrameTexture();
this.effect.setTexture("uScene", scene);
// biome-ignore lint/suspicious/noExplicitAny: viewport shape varies by call site
Expand Down
Loading