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
172 Chapter 3 Renderers
repeat, or mirrored repeat). The returned value is the modification. The sampling
itself depends on the type of sampler. The base class specifies the pure virtual function
virtual ColorRGBA operator() (const float* afCoord) = 0;
Each derived class implements this according to its needs. A pixel program that uses
textures receives an array of samplers. A texture coordinate is passed to a sampler
using
operator() and the returned value is the color to be used by the pixel progr am.
For a simple base texture effect, the returned color is the pixel color.
The derived classes
SoftSampler1, SoftSampler2, and SoftSampler3 implement
texture sampling for 1-, 2-, and 3-dimensional textures, respectively. The derived
class
SoftSamplerCube
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