I’m using particles for dust trails, and even when I’m in a dark cave, the particles can appear really bright… but only from some angles. Can anyone help me work this out to achieve more realistic dust particles?
Thanks for the feedback. Hmmm. I disabled soft particles, and can’t really tell a difference. The particles still get really bright from some angles even though the color mode is set to multiple:
Thanks again, still not seeing any noticeable improvement in the glowing dust. Any other ideas?
What I’m going for is a particle that will be dark/unlit when in the dark, and then appear light/natural when in the light. Right now, it looks good in the light, but when I go in dark areas, the dust stays the same brightness.
Ah. That’s different than “really bright from certain camera angles”, that’s “not being affected by lighting.” Youre using an unlit shader, which by definition is not affected by lighting. Unfortunately you have a secondary issue which is Unity doesn’t support shadow casting on transparent materials, so particles that are lit, and are in a dark area due to the light being shadowed will still be bright. There’s no easy solution to this since Unity explicitly does not support it.
The hack work arounds are:
Render your own shadow maps, or copy the built in ones using command buffers and compute buffers, and manually pass them to custom particle shaders.
Use baked lighting and light probe proxy volumes and sample all lighting for particles from that, again using custom particle shaders.
Raycast from the particle system to the light to see if it should be considered in shadow and change the particle system’s start color.
Use hard edged or dithered alpha tested particles, which really can receive shadows.
Or less hacky would be to move to the new LW or HD pipelines, both of which support lit and shadowed transparencies, but you’ll likely still need custom particle shaders since neither really have good shaders for this yet.
Thanks for the detailed response! Glad it wasn’t something simple I’m missing. I think the easiest of these options for me to explore would be the raycast/particle color. So I’m going to look into that more as well as the other methods you outline. I don’t feel comfortable yet switching to the LW or HD pipelines, even though they look promising for the future.