Learning to write shaders

I’m a bit lost when it comes to shaders and graphics programming in general. I like game (logic) programming a lot, but I’m not much into engine or low level programming so I’d like to learn as much as I can in order to get the most out of Unity’s ShaderLab.

Is there any book or tutorials you’d recommend to a newbie on this area? What about Real Time Rendering? It’s a classic and I have it, but haven’t found the time to read it yet (and frankly, since now I had no hurry to do it :slight_smile: )

Real Time Rendering is a very good book to learn, well, real-time rendering :slight_smile: It does not have much on the actual shaders though, but it has everything on transformations, lighting etc., all of which are useful when writing shaders.

To write actual shaders you probably need the above knowledge plus some knowledge of how graphics hardware works (D3D, OpenGL, Cg, …). Reading a book like Cg Tutorial might help as well.

What about The Cg Tutorial ? im willing to buy that one >D

Omar Rojo