Platform SDK: DirectX

CONST_D3DCAPSSHADE

The CONST_D3DCAPSSHADE enumeration defines polygon shading capability flags that are combined and present in the lShadeCaps member of the D3DPRIMCAPS type.

Enum CONST_D3DCAPSSHADE
    D3DPSHADECAPS_ALPHAFLATBLEND = 4096
    D3DPSHADECAPS_ALPHAFLATSTIPPLED = 8192
    D3DPSHADECAPS_ALPHAGOURAUDBLEND = 16384
    D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED = 32768
    D3DPSHADECAPS_ALPHAPHONGBLEND = 65536
    D3DPSHADECAPS_ALPHAPHONGSTIPPLED = 131072
    D3DPSHADECAPS_COLORFLATMONO = 1
    D3DPSHADECAPS_COLORFLATRGB = 2
    D3DPSHADECAPS_COLORGOURAUDMONO = 4
    D3DPSHADECAPS_COLORGOURAUDRGB = 8
    D3DPSHADECAPS_COLORPHONGMONO = 16
    D3DPSHADECAPS_COLORPHONGRGB = 32
    D3DPSHADECAPS_FOGFLAT = 262144
    D3DPSHADECAPS_FOGGOURAUD = 524288
    D3DPSHADECAPS_FOGPHONG = 1048576
    D3DPSHADECAPS_SPECULARFLATMONO = 64
    D3DPSHADECAPS_SPECULARFLATRGB = 128
    D3DPSHADECAPS_SPECULARGOURAUDMONO = 256
    D3DPSHADECAPS_SPECULARGOURAUDRGB = 512
    D3DPSHADECAPS_SPECULARPHONGMONO = 1024
    D3DPSHADECAPS_SPECULARPHONGRGB = 2048
End Enum 
D3DPSHADECAPS_ALPHAFLATBLEND, D3DPSHADECAPS_ALPHAFLATSTIPPLED
Device can support an alpha component for flat blended and stippled transparency, respectively (the D3DSHADE_FLAT state for the CONST_D3DSHADEMODE enumeration). In these modes, the alpha color component for a primitive is provided as part of the color for the first vertex of the primitive.
D3DPSHADECAPS_ALPHAGOURAUDBLEND, D3DPSHADECAPS_ALPHAGOURAUDSTIPPLED
Device can support an alpha component for Gouraud blended and stippled transparency, respectively (the D3DSHADE_GOURAUD state for the CONST_D3DSHADEMODE enumeration). In these modes, the alpha color component for a primitive is provided at vertices and interpolated across a face along with the other color components.
D3DPSHADECAPS_ALPHAPHONGBLEND, D3DPSHADECAPS_ALPHAPHONGSTIPPLED
Device can support an alpha component for Phong blended and stippled transparency, respectively (the D3DSHADE_PHONG state for the CONST_D3DSHADEMODE enumeration). In these modes, vertex parameters are reevaluated on a per-pixel basis, applying lighting effects for the red, green, and blue color components. Phong shading is not currently supported.
D3DPSHADECAPS_COLORFLATMONO, D3DPSHADECAPS_COLORFLATRGB
Device can support colored flat shading in the D3DCOLOR_MONO and D3DCOLOR_RGB color models, respectively. In these modes, the color component for a primitive is provided as part of the color for the first vertex of the primitive. In monochromatic lighting modes, only the blue component of the color is interpolated; in RGB lighting modes, the red, green, and blue components are interpolated.
D3DPSHADECAPS_COLORGOURAUDMONO, D3DPSHADECAPS_COLORGOURAUDRGB
Device can support colored Gouraud shading in the D3DCOLOR_MONO and D3DCOLOR_RGB color models, respectively. In these modes, the color component for a primitive is provided at vertices and interpolated across a face along with the other color components. In monochromatic lighting modes, only the blue component of the color is interpolated; in RGB lighting modes, the red, green, and blue components are interpolated.
D3DPSHADECAPS_COLORPHONGMONO, D3DPSHADECAPS_COLORPHONGRGB
Device can support colored Phong shading in the D3DCOLOR_MONO and D3DCOLOR_RGB color models, respectively. In these modes, vertex parameters are reevaluated on a per-pixel basis. Lighting effects are applied for the red, green, and blue color components in RGB mode, and for the blue component only for monochromatic mode. Phong shading is not currently supported.
D3DPSHADECAPS_FOGFLAT, D3DPSHADECAPS_FOGGOURAUD, D3DPSHADECAPS_FOGPHONG
Device can support fog in the flat, Gouraud, and Phong shading models, respectively. Phong shading is not currently supported.
D3DPSHADECAPS_SPECULARFLATMONO, D3DPSHADECAPS_SPECULARFLATRGB
Device can support specular highlights in flat shading in the D3DCOLOR_MONO and D3DCOLOR_RGB color models, respectively.
D3DPSHADECAPS_SPECULARGOURAUDMONO, D3DPSHADECAPS_SPECULARGOURAUDRGB
Device can support specular highlights in Gouraud shading in the D3DCOLOR_MONO and D3DCOLOR_RGB color models, respectively.
D3DPSHADECAPS_SPECULARPHONGMONO, D3DPSHADECAPS_SPECULARPHONGRGB
Device can support specular highlights in Phong shading in the D3DCOLOR_MONO and D3DCOLOR_RGB color models, respectively. Phong shading is not currently supported.