2D Toolkit Forum

2D Toolkit => Support => Topic started by: xecut on May 02, 2013, 08:53:47 am

Title: Using independent shader for a sprite
Post by: xecut on May 02, 2013, 08:53:47 am
Hi all, I am new to 2DToolkit and I need some help.

I've created a texture atlas, and of course, with a bunch of sprites inside.
I realised when I change the shader in one of the sprite, the entire texture atlas' shader changes as well.

So, is there a way to change one sprite's shader, but keeping it in the texture atlas?
Title: Re: Using independent shader for a sprite
Post by: unikronsoftware on May 02, 2013, 10:22:38 am
Yes you can. Do this:
http://unikronsoftware.com/2dtoolkit/doc/tutorial/multiple_materials_in_a_sprite_collection.html
Title: Re: Using independent shader for a sprite
Post by: xecut on May 02, 2013, 10:33:34 am
LOL I'm blind

thank you btw!