2D shaders are possible ?

Hi, my name is Víctor and I’m trying to learn about shaders.

I recently purchased and udemy course about shaders in Unity but I’ve seen that this course and most of the tutorials on Internet are about shaders in 3D projects.

I’m working with a 2D project and I was wondering if I could take profit of this knowledge in 3D tutorials to get shaders for 2D.

Someone knows where to find information about 2D shaders ?
Could I learn by this 3D shader tutorials and then use this knowledge to make 2D shaders ?

Well one asset already has:

It came out a few weeks ago i think.

1 Like

Hmm just looked it has been out for a while now but i discovered it a few weeks ago oh well anyway…

Thanks, do you know if this asset was created with shaders in Unity ? What I were expecting was a way to learn the basics of shaders to develop in 2D, not an asset with the work done.

I suppose that if someone could create this asset is because this awesome shaders could by created by using Unity?..

You best ask them i suppose however the assets does creats the shaders itself. i checked. It gives a useful workflow to make them. Some effects are however to slow for mobile while one demo shader does not work on mobile so far.
It is probably due that some devices do not support some effects i assume. I havent had time to do real tests yet.
Unity 2018.2 has its own Shader Graph. Not sure if it can be used for 2D others can shed some more light on it i bet.

You can download all the built-in shaders that come with Unity here:

It’s in the dropdown menu for each version.

Shaders can be used for 2D or 3D.

Here’s a good video for an intro to Shaders using 2D examples.

And here’s one for 3D examples:

I suggest you watch the other videos on that Youtube channel, they’re very insightful.

1 Like

There is no such thing as"2D" in Unity really - it is all 3D rendering. Any 2D mentioned is there to help people understand the tooling for 2D style games they might want to make.

1 Like