Hello Guest

Author Topic: lights in tk2dSprite with tk2dCamera  (Read 3561 times)

zeusrami

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 24
    • View Profile
lights in tk2dSprite with tk2dCamera
« on: January 03, 2014, 10:33:46 am »
Hi, I want to create light effects in  tk2dSprites when using the tk2dCamera in unity 4.2.1. Do you know how can I do it?

Regards,
Ramiro

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: lights in tk2dSprite with tk2dCamera
« Reply #1 on: January 03, 2014, 12:19:57 pm »
Enable normals on the sprite, change the shader to a lit shader, and then create a light. That will work in Unity 4.2.x with a tk2dCamera. Unfortunately Unity broke that behaviour in Unity 4.3, so until they fix it you may have to do hacks like this to work around it. (http://2dtoolkit.com/forum/index.php/topic,3288.msg16055.html#msg16055) I've reported the regression, but no news when it'll get fixed.