没有合适的资源?快使用搜索试试~ 我知道了~
首页Direct3D ShaderX: Vertex and Pixel Shader Tips and Tricks
Focusing on Direct3D 8.x, this book shows a wide array of specialized vertex and pixel shader programming tricks from industry experts.
资源详情
资源评论
资源推荐



Direct3D ShaderX
Vertex and Pixel Shader
Tips and Tricks
Edited by Wolfgang F. EngelEdited by Wolfgang F. Engel
Wordware Publishing, Inc.Wordware Publishing, Inc.
Team LRN

Library of Congress Cataloging-in-Publication Data
Direct3d ShaderX : vertex and pixel shader tips and tricks / edited by
Wolfgang F. Engel.
p. cm.
Includes bibliographical references and index.
ISBN 1-55622-041-3
1. Computer games--Programming. 2. Three-dimensional display systems.
3. Direct3D. I. Engel, Wolfgang F.
QA76.76.C672 D57 2002
794.8'15265--dc21
2002006571
© 2002, Wordware Publishing, Inc.
All Rights Reserved
2320 Los Rios Boulevard
Plano, Texas 75074
No part of this book may be reproduced in any form or by any means
without permission in writing from Wordware Publishing, Inc.
Printed in the United States of America
ISBN 1-55622-041-3
10987654321
0502
RenderMan is a registered trademark of Pixar Animation Studios.
krass engine is a trademark of Massive Development.
3D Studio Max is a registered trademark of Autodesk/Discreet in the USA and/or other countries.
GeForce is a trademark of NVIDIA Corporation in the United States and/or other countries.
Some figures in this book are copyright ATI Technologies, Inc., and are used with permission.
Other product names mentioned are used for identification purposes only and may be trademarks of their respective companies.
All inquiries for volume purchases of this book should be addressed to Wordware Publishing, Inc., at the above
address. Telephone inquiries may be made by calling:
(972) 423-0090
Team LRN

Contents
Foreword .......................................xvi
Acknowledgments..................................xvii
Part 1: Introduction to Shader Programming
Fundamentals of Vertex Shaders ...........................4
Wolfgang F. Engel
What You Need to Know/Equipment .........................5
Vertex Shaders in the Pipeline .............................5
Why Use Vertex Shaders? ...............................7
Vertex Shader Tools ..................................8
NVIDIA Effects Browser 2/3 ..........................8
NVIDIA Shader Debugger ...........................9
Shader City ...................................10
Vertex Shader Assembler............................10
NVIDIA NVASM — Vertex and Pixel Shader Macro Assembler ....10
Microsoft Vertex Shader Assembler ...................11
Shader Studio ..................................11
NVLink 2.x ...................................12
NVIDIA Photoshop Plug-ins..........................13
Diffusion Cubemap Tool ............................14
DLL Detective with Direct3D Plug-in.....................15
3D Studio Max 4.x/gmax 1.1..........................16
Vertex Shader Architecture ..............................16
High-Level View of Vertex Shader Programming ..................18
Check for Vertex Shader Support .......................19
Vertex Shader Declaration ...........................19
Set the Vertex Shader Constant Registers ...................22
Write and Compile a Vertex Shader ......................22
Application Hints .............................26
Complex Instructions in the Vertex Shader................27
Putting It All Together ..........................27
Swizzling and Masking ..........................31
Guidelines for Writing Vertex Shaders ..................32
Compiling a Vertex Shader ........................33
Create a Vertex Shader .............................34
Set a Vertex Shader ...............................34
Free Vertex Shader Resources .........................35
Summary ....................................35
What Happens Next? .................................35
iii
Team LRN
剩余523页未读,继续阅读


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论1