Index_F

F

face, of a triangle, 21

face normals, 21

FFP (fixed-function pipeline)

replacing sections of, 90-91

setting the color, 195

using in DirectX 9, 129

vertex declarations used with in DirectX 9, 132

vertex operations, 95

field-of-view parameter, 99

final color value, calculating, 35

flat shading, render state as, 282

flexible vertex format. See FVF

float array, setting for the DirectX 9 style vertex shader, 134-135

float constant registers, 197

in DirectX 8 shaders, 198

for pixel shaders, 282, 283-284

float constants, in DirectX 9 vertex shaders, 198

floating point constants, setting the value of vertex shader, 211-212

floating point register, moving data from into the address register, 251-252

floating point vertex shader registers, getting the maximum number of, 136

flow control, added with vertex shader 2.0, 202

fog blend, performance of, 107

fog calculations, applying, 169-172

fog shader, 168-172

forward scattering, 54

forward slashes (//), placing C-style comments in shader code, 192-193

four-component dot product, computing, 215, 300-301

four-element vectors, passing to your pixel shader, 203

frame of rendering, setting values of the constant registers prior to, 197

frc (fractional) instruction, 302-303

frc macro, 224-225

Fresnel, Augustin, 67

Fresnel equations, 64-74

for dielectrics, 65-70

Fresnel shader, 187-189

Fresnel term

approximating, 187

getting a reasonable estimate on, 71

for real materials, 70-74

Fresnel value, at normal angles of incidence, 71

full moon, non-Lambertian distribution of, 54, 55

full precision registers, in pixel shaders version 2.0 or better, 109

function call, making to the instruction label, 208-209

functions

ConfirmDevice() function, 116-117

CreateDevice() function, 114

CreateVertexDeclaration() function, 122

D3DXAssembleShader() helper function, 130-131, 212

Gaussian distribution function, 75

GetDeviceCaps() function, 115

RegisterSoftwareDevice() function, 114

SetFVF() function, 129, 132, 133

SetPixelShader() function, 132, 133

SetPixelShaderConstants() function, 136, 284, 297

SetShaderConstant() function, 133

SetStreamSource() function, 101

SetTexture() function, 108, 287

SetTextureStage() function, 291

SetTextureStageState() function, 108

SetVertexDeclaration() function, 122, 133

SetVertexShader() function, 128, 132, 133

SetVertexShaderConstant() function, 100, 198

SetVertexShaderConstantF() function, 100

FVF (flexible vertex format), 119

FVF bit masks, 119

FVF codes, vertex shader registers mapped in, 119

FVF flag, making zero in the CreateVertexBuffer() call, 125

FVF formats, in DirectX 8, 199



Real-Time Shader Programming(c) Covering Directx 9. 0
Real-Time Shader Programming (The Morgan Kaufmann Series in Computer Graphics)
ISBN: 1558608532
EAN: 2147483647
Year: 2005
Pages: 104
Authors: Ron Fosner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net