Hello Guest

Author Topic: Getting particle systems to be lit  (Read 3826 times)

Neeko

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
    • Overdeveloped
Getting particle systems to be lit
« 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?

Neeko

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
    • Overdeveloped
Re: Getting particle systems to be lit
« Reply #1 on: May 17, 2015, 06:42:23 pm »
Desperation bump  :-[

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Getting particle systems to be lit
« Reply #2 on: May 17, 2015, 09:10:56 pm »
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.

Neeko

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 59
    • View Profile
    • Overdeveloped
Re: Getting particle systems to be lit
« Reply #3 on: May 17, 2015, 11:50:52 pm »
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.