Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Snow shader with real time adjustable density

Author
Message
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 11th Sep 2011 01:31
Is there anything like that at all?

And for DBPro?

The idea would be that in my level editor for my schmup i draw the line where the camera travels around the level object, and i also give the camera position nodes several info about for example the weather. Right now there are two major parts that build up the weather on the level, humidity and temperature. If humidity is high enough, rain starts falling. As the value increases, the harder it falls. When i push down the temperature, the rain becomes snowy, then it is snow all the way. Also the low blueish fog slowly becomes a more and more dense white fog.

So right now i have this, and i just had the quick fun idea of having snow building up in the level's and enemies' textures using some kind of a method, which would be totally procedural so i don't have to manually paint textures (probably would do it anyway for moving objects/enemies, but for the level it would be quite a nice feature!)...

There was a shader collection up here a few years ago, which had a "snow shader", but all it did was showing me some kind of a stupid low poly rock or something half white. Later, when i deleted the stuff i realized it maybe did a trick of painting the upper sections of an object white... but i can't check it since i can't find it anymore.

So what i would be after is a shader, which receives the value of a variable, a 'percentage of surface cover' by snow. And displays the effect according to this value on a simple not animated textured mesh, in the most possible quality way.

Any thoughts anybody?

-In.Dev.X: A unique heavy story based shoot'em ~35%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
Max P
16
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 11th Sep 2011 11:25
Here is the shader that was in the shader pack, it creates snow using the normals of an object.
So it only creates snow on the top of the object. Shouldn't be too hard to change the amount of snow on the object.

Login to post a reply

Server time is: 2026-07-11 14:37:11
Your offset time is: 2026-07-11 14:37:11