Need snow that is effected by light

I’m working on a something that has a heavy emphasis on complete darkness and snow.

Not to go into too many details, but I really need the snow to be effected by light.

Every particle system I see has them light up in pitch black and can not find anything on Google.

Any suggestions?

“Affected by light” is really quite vague. All of Unity’s standard “Lit” shaders are affected by light. Could you be a bit more specific about what you’re looking for?

Alright, the point of this project is to be in complete darkness with enemies popping into the light suddenly. I need a snow system that comes and goes to obscure movement at various intervals so playing on the player’s anxiety.

The problem is that every snow system that I’ve seen uses a particle system, and to the best of my knowledge there is no solution to make particles be effected by lighting.

I need the snow to come into view as it passes in front of the player’s flashlight, or other sources of light.

I can’t have the game be completely pitch black, but then have this snow viewable from several yards away at every angle.

Yep, have you tried using a material with a lit shader for your particles?

I did.

it only takes light from the point of emission, not where the snowflakes are.

So I end up with snow flakes that all turn on when I point a flashlight at the emitter, then turn off when look away.

That’s weird… here is what I got with a quick test, all Uncle Kurt Programmer Art:

https://www.youtube.com/watch?v=0prGk2B-xPE

I offset the flashlight slightly down and to the right, which is why you see a few particles below and to the right of the light cone. If you put the flashlight on the camera gaze line, those snow particles are invisible.

Full package attached below.

6451064–722531–NighttimeSnow.unitypackage (540 KB)

1 Like

Huh, okay I’ll take a look.

Thank you so much, I have no idea what I’m doing wrong.

It may just be the asset I’m using.

The most non-standard thing I used is that legacy transparent shader on the snow particles… I could not get the standard shader to work for me so I just started fiddling.

1 Like

Hey though, sincerely, thanks.

I’ve been stuck on this while an I really appreciate all the time you put into helping me.

2 Likes

You are very welcome!

Note: if I was playing a creepy dark snowy game and your smiling avatar, teddy bear with a bandaid on his head, came looming at me out of the crowd, I believe I would be extremely distressed.

1 Like

LOL

I’m actually going to use a bear encounter to stop players from reaching the edge of the map.

Basically if they get too close to the edge a bear shows up, gives them a chance to run, then straight up murders them if they don’t.

Putting in a Bravely Bear bear instead of a normal bear periodically after a few encounters would be a nice Easter Egg.

Thanks to your help, got it looking good.

That’s a truck, btw.

2 Likes

I like your game design thinking.

“Dude, I told you to turn around, but did you listen? nooooo, you didn’t did you??”

1 Like

Oh man, just looked at that more in a dark room… that looks nice! Creepy!