Skip to Main Content
3D Game Engine Design, 2nd Edition
book

3D Game Engine Design, 2nd Edition

by David Eberly
November 2006
Intermediate to advanced content levelIntermediate to advanced
1040 pages
26h 31m
English
CRC Press
Content preview from 3D Game Engine Design, 2nd Edition
Chapter
20
Special Effects
Using Shaders
Various shader progr ams are described in this chapter. Their level of complexity
varies from very simple (vertex colors, single textures, lights, and materials) to very
complicated (planar shadows, planar reflections, water effects). The shader programs
built into the engine are found in the folder
GeometricTools/WildMagic4/Shader Programs/Cg
Some applications have their own specially constructed shader programs. The
shader files are located in the application folders.
20.1 Vertex Colors
Applying vertex colors to a geometric object is a simple task. The Vertex.cg file
contains two vertex programs:
void v_VertexColor3 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

3D Game Engine Architecture

3D Game Engine Architecture

David Eberly
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer
Computer Graphics

Computer Graphics

Alexey Boreskov, Evgeniy Shikin

Publisher Resources

ISBN: 9781482267303