Godot 4: Heart monitor shader (tutorial)

https://www.youtube.com/watch?v=GgG8RxXT5v4

Hello, everyone! In the previous video, we created a simulation of an electrical discharge using a line with multiple segments. This time, we'll stick with a similar concept, although we'll approach it a bit differently. We'll create something like an ECG monitor that displays the characteristic heartbeat waveform.

31 points · 4 comments · view on lemmy.world

4 Comments

graynk@discuss.tchncs.de · 5 pts · 13d (1 reply)

I'm saving all these as bookmarks but I swear I'm gonna go through them at some point

FencerDevLog@programming.dev · 2 pts · 13d

Good plan! 😎

ICastFist@programming.dev · 2 pts · 13d (1 reply)

Why make it a shader? Couldn't you get a similar effect by simply playing around with a Line2D node's color with a gradient?

FencerDevLog@programming.dev · 3 pts · 13d

For example, because Line2D runs on the CPU, while a shader runs on the GPU (much faster). But of course, many effects can be achieved in different ways. I just happen to prefer shaders.