Back to Browse

I Spent 1 Week Learning to Code Shaders with Bevy & Rust

26.4K views
Dec 23, 2024
13:48

#gamedev #bevy #rustlang In this video, I used an entire week of my spare time trying to learn the secrets of shader effects using the programming language rust inside of the bevy game engine. My journey started because throughout my game development journey, my games all seemed a bit visually bland and the only way to fix this was to learn how to utilize GPU shader languages such as glsl and wgsl to create post processing effects such as bloom, vignette, and film grain as well as spicing up environments with water shaders and effects such as an energy ball. I started out by creating shaders inside of a website called Shadertoy, which allowed me to experiment in realtime with shaders so that I would be ready to port them to wgsl and use them readily inside of bevy. Throughout this video I was able to create a total of 3 shaders in this 1 week time frame. Specifically, I made a water shader, an electric energy ball shader as well as a film grain post processing effect using special techniques such as hashing to simulate a random function inside of shaders which do not retain data between frames and noise generation to make the effects seem more detailed. Also just an FYI, I did not do all this in a 1 week time frame but I create this whole project, including the editing within a 1 week amount of time. I did this so I could have time to rest in between working on this project as I did not want to feel too burnt out. I Spent 1 Week Learning to Code Shaders with Bevy & Rust Join my Discord! https://discord.gg/cRba8sDqAy Links Bloom Article: https://learnopengl.com/Advanced-Lighting/Bloom My ShaderToy Profile: https://www.shadertoy.com/user/BipedPotato Timestamps 0:00 - Intro 1:12 - Pixel Art for Environment 1:40 - Pixel Art for Player Sprite 1:56 - Demo Scene Setup 2:28 - Water Shader 3:35 - Water Shader Code Explanation 4:50 - Water Shader Bevy Implementation 5:52 - Energy Ball Shader 6:48 - Energy Ball Code Explanation 11:16 - Energy Ball Bevy Implementation 12:21 - Film Grain Shader 13:38 - Outro Music Used Music used in this video: ♪ Corbyn Kites - Instant Crush Link: https://www.youtube.com/watch?v=vad0YbV9wm4 ♪ Evan King(Context Sensitive) - Beyond Light Link: https://www.youtube.com/watch?v=pybJxqpqXLg ♪ Marshmellow (Prod. by Lukrembo) Link : https://youtu.be/y7KYdqVND4o ♪ Biscuit (Prod. by Lukrembo) Link : https://youtu.be/EtZ2m2Zm3vY LAKEY INSPIRED - ♪ Better Days Link : https://www.youtube.com/watch?v=RXLzvo6kvVQ

Download

0 formats

No download links available.

I Spent 1 Week Learning to Code Shaders with Bevy & Rust | NatokHD