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
have a good day
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
have a good day
Hi @MJ0619 and welcome,
I’ve done something similar here: https://twitter.com/PlayingInCanvas/status/1515998367800864770?s=20&t=N7iOypzqQwN0jchaGajFMQ
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~
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:
https://playcanvas.github.io/#/graphics/ground-fog
thank you Leonidas!!
Your advice has been very helpful.