Hi,Anybody use SM2 to make 2d game?How to make outline effect for the sprite?I use the 3d’ s outline shader to test,
but not work.
easy way: You draw it on top of your texture in your image editing software. (Its 2d anyways)
hard and unnecessary way: you draw outline alpha for all your textures and blend it with a shader.
fancy way: you read every pixel in your image with a shader and calculate the edges from these pixels and draw an outline around it.
thanks aubergine,yes ,change texture is good for static mesh!
And How about the animation sprite,the same as the static?
static or animated doesnt matter, if you dont want to hassle, go the shader way. If you are an artist type and extra textures dont bother you, outline them all in image editing software.
Thanks for giving different ways for solution…