2D Toolkit Forum

2D Toolkit => Support => Topic started by: MyNameIsDonovan on July 04, 2013, 06:50:52 pm

Title: Can you make a sprite black when not lit?
Post by: MyNameIsDonovan on July 04, 2013, 06:50:52 pm
Hello all, its me again asking another possibly extremely noobish question.
I want my sprites to black out when there's no light on them, so things will remain "hidden" until the players light source hits them.
I tried using the tk2D shaders, but they just slightly grayed them out.
Is there a way to achieve this?
Title: Re: Can you make a sprite black when not lit?
Post by: profanicus on July 04, 2013, 11:56:57 pm
The first thing that comes to mind is that you'll need to turn off ambient lighting in render settings, and make sure you are using the tk2d Lit shaders..
Title: Re: Can you make a sprite black when not lit?
Post by: unikronsoftware on July 05, 2013, 09:05:07 am
Yup, I'm pretty sure it is ambient thats making it grey.
Title: Re: Can you make a sprite black when not lit?
Post by: MyNameIsDonovan on July 05, 2013, 06:28:52 pm
You guys are the best!!!
Although I couldn't find where to turn off ambient lighting, I just set it to Black. I'm getting the results I wanted so I'm happy :D

Thanks guys!
Title: Re: Can you make a sprite black when not lit?
Post by: profanicus on July 05, 2013, 11:08:05 pm
Lol sorry, 'turn off' = set it to zero = make it black, you did the right thing.