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
Appendix
Creating a Shader in
Wild Magic
There are two basic ways to create a shader effect in Wild Magic version 4. The first
method is classless in that you assemble all the components within your application
code and attach the effect to the geometric primitive of interest. The second method
involves creating a new class, either derived from
ShaderEffect for a local efffect or
derived from
Effect for a global effect that requires its own drawing function.
The sections in this appendix illustrate the two methods for a particular effect.
The sample application is located in
GeometricTools/WildMagic4/SampleGraphics/BlendedTerrain
and contains a height field ...
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