2D Toolkit Forum

2D Toolkit => Support => Topic started by: zeusrami on January 03, 2014, 10:33:46 am

Title: lights in tk2dSprite with tk2dCamera
Post by: zeusrami 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
Title: Re: lights in tk2dSprite with tk2dCamera
Post by: unikronsoftware 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.