Resources for learning shader


#1

Hello all, I searched all the sites and tutorials for shader development but those which i found are too difficult for me to understand :sweat_smile:. I know this topic has been answered earlier but still I want to ask if anyone has better tutorial for beginners in shader development :grin:.
P.S: I have basic knowledge of python and c++ and know how to do it by nodes in ue4. Just need resources for programming the shader in visual studio. Please let me know if there are any IDE’s which can help too! :wink:

Thank-you! :slight_smile:


#2

If u take a node system just try to learn the basics and experiment. You can learn in unreal and use it in Unity, or Amplify to Shaderforge.
I’m learning just playing with them (and watching others people work).


#3

I wrote up some Unreal material editor tutorials on my website a while back - just breakdowns of what the nodes do and how they can be used but hopefully they might be of some help:

http://www.tharlevfx.com/unreal-4-material-editor-math/
http://www.tharlevfx.com/unreal-4-uv-tricks/
http://www.tharlevfx.com/unreal-4-material-vectors/
http://www.tharlevfx.com/unreal-4-world-position-offset/


#4

If I’m understanding correctly you want to code one, right?

if so, a couple of links:


http://blog.felixkate.net/2016/05/22/adding-a-custom-shading-model-1/

I never got anywhere with this but you may well do!


#5

Thanks a lot! I’ll definitely look into the links you’all provided and get back if have any questions. :slight_smile:


#6

Are you asking for resources specific to an game engine (like Unity or Unreal) or more general?

Asking “how do I write shaders” with out context is hard to answer as it’s nearly as open ended as “how do I write game code”. If you’ve got a base of c++ that’ll help as you’ll understand the basic syntax and conditionals as both GLSL and HLSL are roughly C like.

However if you really just want to learn shaders and aren’t tied to a particular engine I would suggest switching to Unity as, unlike with Unreal, writing shader code directly is a common thing to do and there are a lot more resources available for helping to learn to write shaders for Unity. Writing shader code in Unreal is a much more “advanced” use of the engine, and there is relatively speaking far fewer resources available to help learn.

This link is the one I send almost everyone to first, as it does a good job of explaining the basics, both in an engine / api agnostic way and then goes into Unity specific code.


#7

Hey Minal,

These are a few tutorials that i have followed and trying to learn shader writing.
Shader 101, 102, 103



This guy has a very nice surface shader series (He dont have any playlist though)

Oh and not to forget this Unite Talk

Edit : These all are for Unity :’(

Regards
Parag Ponkshe


#8

You also have the Cooking Shaders Book for Unity https://www.packtpub.com/game-development/unity-5x-shaders-and-effects-cookbook


#9

I found the series starting with this one useful:


#10

Thanks for the helpful tutorials!
Maybe I should watch all of these asap.


#11

Gotta love that “Making stuff look good” channel, It’s a bummer the videos don’t come out more often.


#12

always liked this guy’s series. really wish there was more.