- Home /
where can you find shader tutorials?
i need to know where some shader tutorials are im planning to make some shaders for may game
Answer by CHPedersen · Feb 08, 2012 at 07:43 AM
The Cg tutorial is a great book (I've read it myself), but it's a little outdated and the syntax of the Cg examples in it doesn't completely correspond to how Unity's ShaderLab works. For example, all shaders in the Cg tutorial book are Vertex/Fragment shader pairs, while in Unity, we get to write Surface shaders, from which a compiler then autogenerates the vertex and fragment shaders. So Unity's ShaderLab operates on a higher level of abstraction than that book does.
I would advise you to read the Cg tutorial to gain a theoretical understanding of how shaders work and how many popular shaders are implemented, such as animation and various lighting techniques (like bump mapping), but refer to Unity's own ShaderLab tutorials to learn how to apply your theoretical knowledge to Unity's specific framework.
You can find the Unity-specific shader tutorial here:
http://unity3d.com/support/documentation/Manual/Shaders.html
thanks i just needed to know were this was im a noob with CG
You're welcome. If the reply helped you, it'd be great if you could mark it as correct. :)
Answer by whydoidoit · Nov 11, 2012 at 02:16 PM
Just wanted to add that we've created the Noobs Guide To Shaders on Unity Gems.
Answer by Pi_3.14 · Nov 11, 2012 at 02:55 PM
http://wiki.unity3d.com/index.php/Getting_Started_with_Shaders
I started this page a while back because I couldn't find any page listing all the available resources for learning shader programming.
I encourage the community to keep it up-to-date.
Your answer
Follow this Question
Related Questions
Unity5 Any way to have a unlit no depth shader? 0 Answers
How To Replicate the Untitled Goose Game Art Style? 0 Answers
Inverted Normals in Player, correct in Editor? 1 Answer
How can I add lighting to curved shader? 0 Answers
Creating a lighting shader 0 Answers