How to achieve distance based translucency?

this is not the best example but are you talking about volumetric stuff?

That requires ray marching.

In case it could help, we have a volumetric fog material plugin:

1 Like

@Pryme8 @Evgeni_Popov
The effect I want is for the world to gradually become transparent from around to the middle, and then disappear

PGDemo | Babylon.js Playground (
This may be close to the effect you want.

Do you mean something like this:


It does seem like this, but your demo is only suitable for a solid color background. You are using a color to cover the model, but it does not actually become transparent

This demo covers the model with a color and is not suitable for transparent situations

You can make a material instead:

1 Like

Thank you, this is exactly the effect I want :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: