2D Toolkit Forum

2D Toolkit => Support => Topic started by: tlcruiser1970 on May 25, 2012, 04:55:49 pm

Title: Static Sprite Batcher Loosing Normals
Post by: tlcruiser1970 on May 25, 2012, 04:55:49 pm
Hello,

I have a sprite collection where I am gernating normals, but when I commit them to a static batcher they are being lost.  Is this expected behaviour?  Can I edit the static sprite generator script somehow to include normals?  Is there a script I can run in the editor somehow to add normals to the mesh the static sprite gernerator creates?   

I want to use a lit shader so I can create a level where the lights go out and my platformer has to use a flashlight.  Maybe there is a better way.

I tried searching the forum, but could not find anything.  Its hard to search for the word normal, so many people use it for questions, like is this normal?
Title: Re: Static Sprite Batcher Loosing Normals
Post by: unikronsoftware on May 25, 2012, 05:07:27 pm
That is a bug, static sprite batcher was written long before this feature existed, and never got updated. I'll get it fixed
Title: Re: Static Sprite Batcher Loosing Normals
Post by: unikronsoftware on May 25, 2012, 11:31:34 pm
I've fixed this for the next version. Drop me an email if you'd like an early copy.