Any hints on how to implement vertical fog?

Any hints on how to implement vertical fog?

I’m developing a minigame with a simple cube.

I want to implement vertical fog like image.

please help :slight_smile:

have a good day

Hi @MJ0619 and welcome,

I’ve done something similar here:

It’s based on this article if you’d like to implement this:

A good starting place is overriding the default PlayCanvas fog shader chunk.

thank you Leonidas!!

Can I just follow the example you showed me?

I am a designer. Modifying the playcanvas fog shader chunk is difficult for me.

Thanks again for the reply. Be happy~ :slight_smile:

Hey, it’s a bit advanced to implement if you don’t have shader experience.

On that regard, not fully the same, but there is this simpler solution too:

1 Like

thank you Leonidas!!

Your advice has been very helpful. :slight_smile:

1 Like