CFx SDK Documentation 2024 SP0
|
#include <GiLightTraits.h>
Public Types | |
enum | ShadowType { kShadowsRayTraced = 0 , kShadowMaps , kAreaSampled } |
enum | ExtendedLightShape { kLinear = 0 , kRectangle , kDisk , kCylinder , kSphere } |
Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 149 of file GiLightTraits.h.
Represents shapes of the extended light sources.
Enumerator | |
---|---|
kLinear | Linear light source. |
kRectangle | Rectangular-shaped light source. |
kDisk | Disk-shaped light source. |
kCylinder | Cylinder-shaped light source. |
kSphere | Sphere-shaped light source. |
Definition at line 224 of file GiLightTraits.h.
Represents methods that are used to compute shadows.
Enumerator | |
---|---|
kShadowsRayTraced | Ray-traced shadows. |
kShadowMaps | Shadow maps. |
kAreaSampled | The area-sampled shadow algorithm shows the effect of extended light sources. |
Definition at line 211 of file GiLightTraits.h.
|
inline |
Default constructor for the OdGiShadowParameters class. Initializes the following data members:
Data member Value Description m_bShadowsOn true Flag that shows if shadows are enabled m_shadowMapSoftness 1 The number of pixels at the shadow edge that are diffused. m_bShapeVisible false Flag that shows if the light shape is visible in the rendering. m_shadowType OdGiShadowParameters::kShadowsRayTraced Method which is used to compute shadows cast from the light source. m_shadowMapSize 256 Shadow map size in pixels. m_shadowSamples 16 The number of shadow rays to shoot for the light. m_lightShape OdGiShadowParameters::kSphere The shape of the extended light source. m_lightLength 0.0 The length of the extended light source. m_lightWidth 0.0 The width of the extended light source. m_lightRadius 0.0 Radius of the extended light source.
Definition at line 495 of file GiLightTraits.h.
|
inline |
Copy constructor for the OdGiShadowParameters class.
parms | [in] Shadow parameters to be copied. |
Definition at line 509 of file GiLightTraits.h.
|
inline |
Retrieves the length of the extended light source.
Definition at line 652 of file GiLightTraits.h.
|
inline |
Retrieves the radius of the extended light source.
Definition at line 674 of file GiLightTraits.h.
|
inline |
Retrieves the shape of the extended light source.
Definition at line 641 of file GiLightTraits.h.
|
inline |
Retrieves the width of the extended light source.
Definition at line 663 of file GiLightTraits.h.
Loads the shadow parameters from the specified filer.
pFiler | [in] Pointer to a filer to load parameters from. |
Definition at line 469 of file GiLightTraits.h.
|
inline |
Inequality operator for the OdGiShadowParameters class.
parms | [in] Parameters to be compared. |
Definition at line 552 of file GiLightTraits.h.
|
inline |
Assignment operator for the OdGiShadowParameters class.
parms | [in] Shadow parameters to be assigned. |
Definition at line 523 of file GiLightTraits.h.
|
inline |
Equality operator for the OdGiShadowParameters class.
parms | [in] Parameters to be compared. |
Definition at line 538 of file GiLightTraits.h.
Saves the shadow parameters to the specified filer.
pFiler | [in] Pointer to a filer to save parameters to. |
Definition at line 452 of file GiLightTraits.h.
|
inline |
Specifies the length of the extended light source.
dLength | [in] Length for the extended light source. |
Definition at line 646 of file GiLightTraits.h.
|
inline |
Specifies the radius of the extended light source.
dRadius | [in] Radius for the extended light source. |
Definition at line 668 of file GiLightTraits.h.
|
inline |
Specifies the shape of the extended light source.
lightShape | [in] Light shape for the extended light source. |
Definition at line 636 of file GiLightTraits.h.
|
inline |
Specifies the width of the extended light source.
dWidth | [in] Width for the extended light source. |
Definition at line 657 of file GiLightTraits.h.
|
inline |
Specifies a shadow map size.
sz | [in] Shadow map size. |
Definition at line 586 of file GiLightTraits.h.
|
inline |
Specifies a shadow map softness.
soft | [in] Shadow map softness value. |
Definition at line 604 of file GiLightTraits.h.
|
inline |
Specifies a number of shadow rays to use for the light.
nSamples | [in] The number of shadow rays to use for the light. |
Definition at line 615 of file GiLightTraits.h.
|
inline |
Specifies whether shadows are casted from the light.
on | [in] Flag that specifies whether to enable shadows . |
Definition at line 566 of file GiLightTraits.h.
|
inline |
Specifies type of the shadows.
typ | [in] Shadow type. |
Definition at line 576 of file GiLightTraits.h.
|
inline |
Specifies whether light shape should be visible in the rendering.
bVisibility | [in] Flag that specifies whether light shape should be visible. |
Definition at line 626 of file GiLightTraits.h.
|
inline |
Retrieves a shadow map size.
Definition at line 599 of file GiLightTraits.h.
|
inline |
Retrieves a shadow map softness.
Definition at line 610 of file GiLightTraits.h.
|
inline |
Retrieves a number of shadow rays to use for the light.
Definition at line 621 of file GiLightTraits.h.
|
inline |
Checks whether shadows are casted from the light.
Definition at line 571 of file GiLightTraits.h.
|
inline |
Retrieves a type a the shadow.
Definition at line 581 of file GiLightTraits.h.
|
inline |
Checks whether light shape is visible in the rendering.
Definition at line 631 of file GiLightTraits.h.