Sprite Layer Swap is a shader based on Unity Sprite shaders able to put up
10 layers in top of each other, displaying complex 2D objects in game.
Every Sprite Renderer using this shader will display the same stacked layers.You can use Animator component to key animate your sprite frames.All shaders are based on Unity Sprite Shader.Play the WebGL DEMOPackage includes:
-
Default Shader: the same Unity Default Sprite shader + option to add 10 layers.
-
Diffuse Shader: the same Unity Diffuse Sprite shader + option to add 10 layers to interact with lights.
-
Otimization: uses shaders to optimize the sprite layer drawing process.
-
Sprite Swap component: MonoBehaviour script component to easily swap layers during runtime.
-
Documentation: source code is fully documentaded.
See the
full documentation for more info!
Credits from Open Game Art:- Hero spritesheet by
Balmer.
- Level tiles by
Surt.