2D Toolkit Forum
2D Toolkit => Support => Topic started by: Neeko on April 22, 2015, 01:49:08 pm
-
I have a sprite that I want to use in my particle systems (it's just 4x4 white square). I'd also like for the particles to be lit.
So I create a sprite collection of just the single texture, generating normals for it, set the shader for the atlas0 material that's generated to LitBlendVertex and attached the atlas0 material to the particle system.
However, the particles are not reacting to light. I've tried different shaders (both Unity and tk2d) but to no avail. I also messed with the particle systems normal direction setting but still nothing.
Is there something I'm missing to get particles in a particle system to be lit?
-
Desperation bump :-[
-
Why are you using tk2d sprites for particle systems, seems counter intuitive.
Instead of a 4x4 white texture, just create a new material, assign the default unity 5 shader, and use that for the particle system. It'll be lit.
-
I tried that as well, but the particles are still not being lit.
I wasn't aware I could get away with just using a regular unity material (I thought a normal map always had to be generated, which is easy to do with sprite collections). You can ignore this thread then since this isn't a tk2d issue. Thanks anyways.