Hello Guest

Author Topic: Applying Light Source Effect  (Read 3199 times)

iron59

  • Newbie
  • *
  • Posts: 23
    • View Profile
Applying Light Source Effect
« on: December 23, 2013, 02:12:24 am »
Good day. I'm making a game wherein a character has a light source which determines the player's view in a circular shape, much like a lantern. To do this, my approach would be to create a new object with tk2D sprite with transparent circle on the center, but I want its transparency to gradually decrease as it goes farther from the circle's center. Is there any way to do this in tk2D? Thank you very much.

P.S. - I'm open to other suggestions to simulate the light source mechanic. Thanks again.  :)
« Last Edit: December 23, 2013, 02:53:54 am by iron59 »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Applying Light Source Effect
« Reply #1 on: December 24, 2013, 11:41:16 am »
You could just use a real unity omni light with lit shaders, that should work just fine with one light source.