Hello Guest

Author Topic: 2D lighting problem  (Read 4931 times)

subzaku

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
2D lighting problem
« on: March 27, 2015, 06:04:55 am »
Hi, i'm trying to use unity lighting on tk2d sprite

i used litblendvertexcolor shader and it works but there is one problem, the light is pretty bright around the edge and a bit dim in the middle
i used point light by unity

did anyone had the same problem? thanks
« Last Edit: March 27, 2015, 06:24:04 am by subzaku »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D lighting problem
« Reply #1 on: March 28, 2015, 03:12:42 pm »
I can't tell what its meant to look like - you could use the unity lit sprite shader, that should work fine here too - the tk2d one is vertex lit, the unity one should probably work with pixel lights - the result should look nicer at the expense of performance.