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

preview_player
Показать описание
#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!

Links

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
♪ Evan King(Context Sensitive) - Beyond Light
♪ Marshmellow (Prod. by Lukrembo)
♪ Biscuit (Prod. by Lukrembo)
LAKEY INSPIRED - ♪ Better Days
Рекомендации по теме
Комментарии
Автор

Had a lot of fun making this video. Also for those of you who are eyeing the dates of creation on my shadertoy profile just know that the total time I spent on this project was equivalent to a weeks worth of time, I just spaced out the work because I can’t find that large of a block of time to work on this project.

bipedpotato
Автор

You should make a longer tutorial video for the water shader! Specifically the Bevy and wgsl part, maybe split it into steps and show how to gradually add it to a codebase.

theknarf
Автор

This is great! Do you have any resources you recommend visiting in order to better understand shader and their implementation inside bevy?

sureyeah
Автор

Where do you study these things of bevy?

atls-
Автор

Love your videos but would be good if you zoom in on your editor a bit more. They are quite hard to watch on mobile.

noideaprojects
join shbcf.ru