Learn how to enhance your game’s graphics with impressive visual effects!
This book provides a detailed guide on creating 30 spectacular shaders in Godot 4, including thorough explanations of their algorithms and parameter settings. Each example comes with complete source code that you can use in your projects without restrictions.
I’ve never tried web export, but I don’t see why these effects shouldn’t work without significantly impacting performance. At least most of them. More complex ones, like plasma or edge detection, might be worth testing. I can test it and we’ll see.
WebGL standard is not the same as Vulcan, and may process some maths with CPUs. Or just doesn’t have enough resources / formats to do effective calculations.
My laptop had some very ancient GPU, and when a game tried to use some fancy shader for the win screen, the FPS went below 1 and the hardware overheated quickly. But web compatibility is more important now.
I think Shadertoy uses WebGL 2.0, and even quite complicated shaders run pretty quickly and smoothly. It doesn’t seem to me that they couldn’t handle efficient calculations. But it also depends on the performance of the GPU, of course. Many shaders, especially those that generate complex 3D scenes, are not intended for older configurations.