- Home /
Recommendation for a book about shaders
Hi all,
I was wondering if anyone would have a recommendation for a book(s) for shaders. I'd like to study the subject in depth. This is for beginner level (in shaders, not as a programmer).
This series of tutorials is a good reference. I used it when I was writing a deferred renderer:
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/
It will $$anonymous$$ch you the basics of setting up OpenGL and writing shaders. It's not directly related to Unity, but the concepts carry over.
Answer by GameGuy · Mar 30, 2012 at 10:59 PM
Nvidia DeveloperZone has good online resources checkout the "Cg Tutorial" & the "GPU Gems" Books, and their shader authoring tool FX Composer.
Answer by Owen-Reynolds · Mar 31, 2012 at 04:17 AM
Most of the GPU gems are descriptions of techniques that an experienced programmer could mess around with. Cutting edge stuff, sort of like long versions of journal papers.
The NVidea book with the elf girl on it was OK, but it isn't really a manual. More like a some examples of the "new" feature for someone who already knew the basics.
I found the OpenGL Programmer's Guide (the "Red Book") the most helpful. It details things you will never need (like how to use ColorIndexMode.) But it does cover everything, with some useful examples. It's about OpenGL, but CG isn't much different.
Answer by tanoshimi · Jul 19, 2015 at 04:31 PM
This is currently cheap: https://www.packtpub.com/game-development/unity-shaders-and-effects-cookbook and might be worth a look.
However, note that Packt are somewhat notorious for editing problems in their titles, code snippets not working etc. It's specific to Unity, which has some advantages, but also means it appears to lack some fundamental stuff about Vert/Frag shaders. You can always check it out at https://books.google.co.uk/books?id=05l3h2YEl-UC≺intsec=frontcover&dq=Unity+Shaders+and+Effects+Cookbook&hl=en&sa=X&redir_esc=y#v=onepage&q=Unity%20Shaders%20and%20Effects%20Cookbook&f=false first.
Your answer
Follow this Question
Related Questions
Why do materials created at runtime show up incorrectly in the inspector? 1 Answer
Help about adding transparency to Roystan's toon shader 0 Answers
"Sand/grain" URP Shader Artifact On Borders After % Operation 1 Answer
how do you make a texture only show near edges at certain angles 0 Answers
Shader Graph transparency issue 0 Answers