![OpenGL 4.0 Shading Language Cookbook](https://wfqqreader-1252317822.image.myqcloud.com/cover/827/34851827/b_34851827.jpg)
上QQ阅读APP看书,第一时间看更新
Chapter 2. The Basics of GLSL Shaders
In this chapter, we will cover:
- Implementing diffuse, per-vertex shading with a single point light source
- Implementing per-vertex ambient, diffuse, and, specular (ADS) shading
- Using functions in shaders
- Implementing two sided shading
- Implementing flat shading
- Using subroutines to select shader functionality
- Discarding fragments to create a perforated look