www.BCB-Tools.com

Home of
RAD DirectX
for
C++ Builder

...

C++ Builder wrapping DirectX

...

Please Register

So we can
create more

the TDx_Library
the TDx9_Library



Welcome to BCB-Tools.com Latest News

Development Tools Demo Applications Step-by-Step Tutorials Component Reference

Register Here! Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    GLOSSARY REFERENCE

    Below you will find the glossary reference for 'D3DFOGMODE'
    Go to the Welcome Page
    If you would like to submit additions or improvements to this page, click: admin@bcb-tools.com.



    D3DFOGMODE

    [ TDx_3DI_Library ]     [ next: D3DLIGHT7 ]     [ prev: D3DFIXED ]

    Text and description quoted verbatim from Microsoft DirectX 7 help file, included here for convenient reference.

    The D3DFOGMODE enumerated type contains constants describing the fog mode. These values are used by the D3DRENDERSTATE_FOGTABLEMODE and D3DRENDERSTATE_FOGVERTEXMODE render state in the D3DRENDERSTATETYPE enumerated type.

    typedef enum _D3DFOGMODE {
    D3DFOG_NONE = 0,
    D3DFOG_EXP = 1,
    D3DFOG_EXP2 = 2,
    D3DFOG_LINEAR = 3
    D3DFOG_FORCE_DWORD = 0x7fffffff,
    } D3DFOGMODE;

    D3DFOG_NONE
    No fog effect.
    D3DFOG_EXP
    The fog effect intensifies exponentially, according to the following formula:
    f=1/e^d*density

    D3DFOG_EXP2
    The fog effect intensifies exponentially with the square of the distance, according to the following formula:
    f=1/e^(d*density)^2

    D3DFOG_LINEAR
    The fog effect intensifies linearly between the start and end points, according to the following formula:
    f= (end - d) / (end - start)

    This is the only fog mode currently supported.

    D3DFOG_FORCE_DWORD
    Forces this enumeration to compile to 32 bits in size. This value is not used.
    Remarks
    In monochromatic (ramp) lighting mode, fog works properly only when the fog color is black. (If there is no lighting, any fog color works since, in this case, any fog color is effectively black.)

    For more information, see Fog.

    Note Fog can be considered a measure of visibility - the lower the fog value produced by one of the fog equations, the less visible an object is.





























Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2008 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.