Unity3D 4.3 sprite shader experiment

preview_player
Показать описание
UPDATE: tutorial and resources now available!

So I tried Unity3D 4.3 tonight and made my own sprite shader :) Created a normal map in Photoshop from a spritesheet I downloaded from the web (just to have something to start working with; it's just an experiment). The shader supports per-pixel lighting (diffuse+specular; light cookies supported), emissive map, and a rim-lighting effect. Of course this is probably too much for any practical 2D game, but it's nice to know these things are possible with the new 2D support! :)
Рекомендации по теме
Комментарии
Автор

hey, how are you flipping the character(inverting its facing) like that? -x scale?  doesn't work for me when I apply normal map material to sprites...nice work btw!

kennethbailey
Автор

Looks very nice. Would you share this shader or even make a tutorial about how you did it?

ShadowCjreek
Автор

Did you use built-in 4.3 sprites? I've tried and found some messages saying 2d sprites don't support lightes by design.

noobsdontgiveup
Автор

I know this video is pretty old but I would LOVE to know how you got that rim lighting effect !!!

DustVoltrage
Автор

Hola, estoy haciendo un juego en Unity con un programador.
Intentamos dar luces a nuestros sprites como en tu vídeo pero no lo conseguimos. Nos podrías decir en que podríamos estar fallando? PD: Me he mirado tu tutorial, pero el código lo toca el, yo soy el artista.

maister
Автор

Is this a quad with a material on it, or is this a SpriteRenderer?

totesMagotes
join shbcf.ru