Skip to content

Void particles outline#2171

Merged
wjt merged 2 commits intomainfrom
void-particles-outline
May 8, 2026
Merged

Void particles outline#2171
wjt merged 2 commits intomainfrom
void-particles-outline

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented May 7, 2026

As delivered by PixelFrog, and composed the 3 of them in a row with GIMP. And change the amount of rows to 3, the new amount of particle variations.

Void enemy: Add outline to all particles

To do it, because the GPUParticle2D needs a CanvasItemMaterial for the 3
variations, add a CanvasGroup and apply the outline shader to it.

Also, change the particles to:

  • Animate the scale animation now starting at zero and ending at zero too.
  • Do not animate the alpha of particles anymore.
  • Emit from the sphere surface (not from sphere).

Resolve #1857

manuq added 2 commits May 7, 2026 12:00
As delivered by PixelFrog, and composed the 3 of them in a row with GIMP. And
change the amount of rows to 3, the new amount of particle variations.

Resolve #1857
To do it, because the GPUParticle2D needs a CanvasItemMaterial for the 3
variations, add a CanvasGroup and apply the outline shader to it.

Also, change the particles to:
- Animate the scale animation now starting at zero and ending at zero too.
- Do not animate the alpha of particles anymore.
- Emit from the sphere surface (not from sphere).
@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented May 7, 2026

The difficult part of making this outline is that, for it to be applied to all the particles, a CanvasGroup has to be used, and the shader has to be adapted to use screen coordinates:

void_with_outline.webm
void_with_outline2.webm

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Play this branch at https://play.threadbare.game/branches/endlessm/void-particles-outline/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@manuq manuq mentioned this pull request May 7, 2026
@manuq manuq marked this pull request as ready for review May 8, 2026 12:40
@manuq manuq requested a review from a team as a code owner May 8, 2026 12:40
@wjt wjt merged commit 1e008b0 into main May 8, 2026
6 checks passed
@wjt wjt deleted the void-particles-outline branch May 8, 2026 14:24
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.

Void: Replace placeholder void bloom

2 participants