- Home /
Particles Affected by Lights!
Hi there! Now I'm working on lit particles and resulting prototype in ShaderForge. But i have a couple of glitches with light attenuation. On the images below you can see particle system with custom shader applied as a two chamfered cubes with same shader, but without texture.
Picture #1. Here the Editor screen with almost fine effect.
Cubes affected by lighting quite right and we can see light attenuation. Lights have the same attenuation range - 3.15 world units. Smoke looks fine.
Picture #2. And here I moved Red pointlight towards Green.
Here the first glitch. Particles lit only by Green light, but should be lit by almost one Red. As i understand lit calculation for particles and regular object - quite different. But didn't find any information regarding Particle Additive Shaders in Depth.
Picture #3 Here one more. Particles Disappear! I think light attenuation becomes zero on some distance to camera. I'm using light attenuation node from ShaderForge.
So! Does anyone know anything about difference in object lighting and particle lighting? Any documentation?