The COMPLETE Effect and HLSL Cross-Reference

By Sebastien St-Laurent
ISBN 0-9766132-1-2
Jan 2006 (896 pages)

Buy directly from Paradoxal Press at $20.75 (Save 43%)

Page 78

RangeFogEnable bool This render state must be either True or False and is used to activate range based fog. See D3DRS_RANGEFOGENABLE in the DirectX documentation for more details.

Page 105

.oat4 Position : POSITION; // vertex position

Page 55

You will also need to change the vertex shader to pass those values to the output structure. Since you will be dealing with a single light, it will be easier at this point to remove the lighting function and

Page 49

Diffuse lighting: Materials presenting a microscopic rough surface has the effect of re.ecting incoming light uniformly in all directions. This has the result of causing the perceived lighting to be the same from any viewing angle.

Page 10

asm This keyword is case insensitive and is used to allow the manual insertion of shader assembly instruction inside a shader. The syntax for this instruction is as follow: asm{ /* assembly instructions */ }

Functions

This section contains information about the following global functions used with Microsoft DirectSetup.