2D Toolkit Forum

2D Toolkit => Support => Topic started by: alexanderm006 on November 12, 2013, 02:57:28 am

Title: Lighting for 2D Toolkit
Post by: alexanderm006 on November 12, 2013, 02:57:28 am
Hey, awesome 2D Toolkit forum.

I've been using 2D Toolkit for a couple months now and am very pleased with it it's performance, it's clearly the best 2D tool available on the asset store. However, I have been having difficulties with lighting my 2D sprites.

My problem is that I can't get Unity's lighting system to work with 2D Toolkit Sprites. I understand that this is a good thing when making ambient 2D games with no shading, but I'd like to be able to shade out the tile map in the background, and put a point light around the player to limit their vision. I'd also like to put a spotlight in the direction of the player to imitate a flashlight.

Thanks to anyone that answers! :)
Title: Re: Lighting for 2D Toolkit
Post by: unikronsoftware on November 12, 2013, 09:51:23 am
Turn on normals in the sprite collection editor settings page, and then switch the shader on the material to a lit one. You will need 2D Toolkit 2.3 beta for lit tile maps, older versions don't generate normals correctly, but sprites should work fine.