CONST_D3DLIGHTTYPE
Defines the light type.
Enum CONST_D3DLIGHTTYPE
D3DLIGHT_POINT = 1
D3DLIGHT_SPOT = 2
D3DLIGHT_DIRECTIONAL = 3
End Enum
Constants
- D3DLIGHT_POINT
- Light is a point source. The light has a position in space and radiates light in all directions.
- D3DLIGHT_SPOT
- Light is a spotlight source. This light is similar a point light, except that the illumination is limited to a cone. This light type has a direction and several other parameters that determine the shape of the cone it produces. For information about these parameters, see the D3DLIGHT8 type.
- D3DLIGHT_DIRECTIONAL
- Light is a source. This is equivalent to using a point light source at an infinite distance.
Remarks
Directional lights are slightly faster than point light sources, but point lights look a little better. Spotlights offer interesting visual effects but are computationally expensive.
See Also
D3DLIGHT8