Game Development Reference
In-Depth Information
Mission accomplished
In this project, we learned the basic concepts of shader programming using a surface shader
and created the custom lighting model for the shader. Some of you might find shader pro-
gramming to be very complex with a lot of things to learn; well, yes, that's true! There is no
easy way to write the code for shader programming. However, if you want to know more
about shader programming, you should definitely learn the Cg/HLSL language, which will
help you to understand more about the structure and syntax of the shader language. Now,
let's see our result in the following screenshot:
Note
We can also get more detail on shader programming in Appendix D , Shaders and Cg/HLSL
Programming , and from Unity at the following websites:
Search WWH ::




Custom Search