Beschreibung:
This book uses examples in OpenGL and OpenGL Shading Language to present the theory and application of shader programming. It explains how to program graphics shaders effectively for use in art, animation, gaming, and visualization. Along with improved graphics and new examples and exercises, this edition includes a new chapter on converting a fixed-function OpenGL program to a shader-based OpenGL program. It also explains how best to use tessellation shaders, illustrates the importance of the invariant qualifier for multipass rendering, and presents new applications, including terrain bump-mapping and LIDAR data.
The Fixed-Function Graphics Pipeline. OpenGL Shader Evolution. Fundamental Shader Concepts. Using glman. The GLSL Shader Language. Lighting. Vertex Shaders. Fragment Shaders and Surface Appearance. Surface Textures in the Fragment Shader. Noise. Image Manipulation with Shaders. Geometry Shader Concepts and Examples. Tessellation Shaders. The GLSL API. Using Shaders for Scientific Visualization. Serious Fun. Appendices. References. Index.