Swirled glass texture effect?

Is there a way to have the blue areas be clear glass? Would like to have clear glass with black swirled throughout.

1 Like

Try this:

Note that this will only work in cycles, not EEVEE

1 Like

To get you started here’s quick setup for both Eevee and Cycles using the Alpha values in the ColorRamp to Alpha in a Principled BSDF. For this to work in Eevee you also have to use the Material Settings in the right hand. Blend Mode on Alpha Blend and Screen Space Refraction on. The RGB node down in left is just for demonstrating the Alpha Value whereabouts. Just note that the Magic Texture is a 2D texture Node that’s only visible on the faces of a object. If you want swirls inside the glass bit you need to distort the vectors of a 3D Noise, Musgrave or Voronoi node and output that to Volume via Volume Scatter or Principled Volume. Also for volumes you can use the ColorRamp Alpha but connected to density instead.

This might be a long shot because you’ve answered this 4 years ago. But I’m having some issues rendering out your nodes in cycles. When I create a render, my ‘magic texture’ seems to be tiling a lot. As if it doesn’t take into account the scale of 0.02 I gave the node. I’m rendering in cycles and using a principled BSDF as shader node.

does anyone know why this is happening?

ps: I wanted to add more pictures but new users are only allowed one image

2 things I can see,
1, your samples in your magic texture are only 3 when in the example it is 6
2. even though you have different colors in your Ramp, it is set to Linear and not Constant like in the example…

last one does not look very transparent and mostly blacikish!

happy bl