I wrote this shader in February 2024 as part of the freelance work Lily and I did on the game Melting Enclopedia. I originally intended it to mimic phosphorescence and color changing in sea creatures, but after I wrote it I found other uses for it as well.
This is a demo video I made for it, using it on not only the 3D model but also the title cards.
In this next video, demonstrating part of what we made for the game, I used it for the blinkenlights on the panel of the machine.
(The music is my own in both videos. In the latter video just now, Lily made most of the textures and models, and I did most of the animations, shading, and arrangement of objects, although if I recall we both did at least a little of all of the above there.)
Anyway, this shader is pretty straightforward to use in Godot 4 I
would say. I’m including the source code in the download along
with both videos; the code is documented for your convenience
with comments for all of the parameters. I’m releasing it under
the MIT license. Have fun! ヽ(^◇^*)/