Bubble Type Shader / Material

I’m looking to replicate a shader that has kind of a bubble effect. So it should be mainly transparent and on the edges it should get colored.

The template looks like that:

And I’ve been using the threex.bubble shader (https://github.com/jeromeetienne/threex.bubble) to start but it also uses an envMap for the distortion and I’m thinking there’s maybe a smarter and better way to do it. Do you have any ideas? Maybe it’s also called differently.

This is what I have now:

But this uses a gradient as the environment, so the distorted gradients only look correct from one position.

TBH, I don’t understand how your screenshots relate to a bubble shader. The first one looks more like some sort of heatmap shader.


ah sorry, I’m only talking about the blue body part. The yellow can be ignored.

1 Like