Could you please share the ground fog shader code or link?

classic Classic list List threaded Threaded
3 messages Options
newlife958 newlife958
Reply | Threaded
Open this post in threaded view
|

Could you please share the ground fog shader code or link?

Hello.
I'm having a hard time implementing the ground fog as a shader.

Could you please share the  ground fog shader code or link?

please.. help..
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Could you please share the ground fog shader code or link?

Which ground fog shader code are you referring to? I do not recall there being any in osgEarth, but my memory might be failing me.
Glenn Waldron / Pelican Mapping
newlife958 newlife958
Reply | Threaded
Open this post in threaded view
|

Re: Could you please share the ground fog shader code or link?

Hello, Glenn.

The shader code referenced is the Haze code of TEST1 of shadercomp.

Based on this I am referencing the link below to implement a height based ground fog.

https://www.iquilezles.org/www/articles/fog/fog.htm

The effect we want to implement finally is to implement the effect as shown in the link below.

http://www.prepar3d.com/wp-content/uploads/2013/10/v2ExampleFog2On.jpg

I've been trying in a number of ways, but the results are still not very good.