#2d #wgsl #shaders #bevy #game-engine

bevy_simple_2d_outline

2D outline materials for the bevy game engine

2 releases

0.1.1 Jan 3, 2023
0.1.0 Dec 30, 2022

#1741 in Game dev

MIT/Apache

24KB
70 lines

WGSL 2d Outline Shader

Bevy tracking crates.io docs.rs

2D outline materials written in wgsl for the bevy game engine.

Shaders

  • Single color outline
  • Single color outline with original texture
  • Rainbow animated outline
  • Rainbow animated outline with original texture

Examples

Screenshot 2022-12-29 at 12 28 41 AM
$ cargo run --example outline
Outline and texture
$ cargo run --example outline_and_texture

Rainbow Outline Gif

$ cargo run --example rainbow_outline

Rainbow Outline And Texture Gif

$ cargo run --example rainbow_outline_and_texture

Dependencies

~42–56MB
~807K SLoC