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
3.4 The Heart of the Renderer 207
Re nderer Constants
The renderer constants were discussed previously. The class RendererConstant has
a set of enumerations that name the renderer constants that a shader program will
use. The class also has a corresponding set of string names for these constants. The
parser in
Program::Load compares the names of shader constants found in the shader
program file to the string names of
RendererConstant. When it finds a match, the
constant is added to an array of
RendererConstant objects in the Program object. In
addition to storing the value of the constant, the parser also discovers which register
(or registers) has been assigned to the constant and stores that information. The
shader constants and registers are accessed ...
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