#bevy #graphics #gamedev #shader

bin+lib bevy_crt

A package for the bevy engine which enables the use of a CRT effect

4 releases

0.1.3 Aug 31, 2022
0.1.2 Aug 31, 2022
0.1.1 Aug 30, 2022
0.1.0 Aug 30, 2022

#1748 in Game dev

GPL-3.0-or-later

8MB
1K SLoC

bevy_crt

CRT Effect for the Bevy Engine My first crate for rust in general, as well as for the Bevy engine. Feedback and PRs are welcomed.

2022-08-30 13-13-37

Usage

To use the crate, you need to also include the shaders which you can get from the source code, or from a bundle that I will provide manually with each release. Simply add the crate to your dependencies, then depending on your needs add either bevy_crt::plugin::Crt2dPlugin, or bevy_crt::plugin::Crt3dPlugin depending on which type of camera you need. Do note that the plugin will create a camera which it expects you to use for your project. If you need to modify the camera in any way, Query for the bevy_crt::plugin::PrimaryCamera component and you will find the camera and transform attached.

Credit

The original shaders used in this project were created by someone known as guest.r on the libretro forums. I've done the work of adapting them to work with the Bevy engine, but I did not create these shaders myself. Original forum post: https://forums.libretro.com/t/new-crt-shader-from-guest-crt-guest-advanced-updates/25444

License

Everything under the src folder was written by me or adapted from the Bevy source code and/or examples. All of my code is licensed under GPL 3.0, as well as the shaders provided in the assets folder.

Dependencies

~19–35MB
~575K SLoC