A PointLight for Dynamic LightMap (DLM) context for a patch. More...
#include <patchdlm_context.h>
Public Member Functions | |
| void | compile (const CPointLight &pl, NLMISC::CRGBA landDiffMat, float maxAttEnd=30.f) |
Public Attributes | |
| float | R |
| float | G |
| float | B |
| bool | IsSpot |
| CVector | Pos |
| CVector | Dir |
| float | CosMax |
| float | CosMin |
| float | OOCosDelta |
| float | AttMax |
| float | AttMin |
| float | OOAttDelta |
| NLMISC::CBSphere | BSphere |
| NLMISC::CAABBox | BBox |
A PointLight for Dynamic LightMap (DLM) context for a patch.
It contains precomputed values.
Definition at line 53 of file patchdlm_context.h.
| void NL3D::CPatchDLMPointLight::compile | ( | const CPointLight & | pl, | |
| NLMISC::CRGBA | landDiffMat, | |||
| float | maxAttEnd = 30.f | |||
| ) |
Definition at line 50 of file patchdlm_context.cpp.
References AttMax, AttMin, NLMISC::CRGBA::B, B, BBox, BSphere, NLMISC::CBSphere::Center, CosMax, CosMin, Dir, NLMISC::CRGBA::G, G, NL3D::CPointLight::getAttenuationBegin(), NL3D::CPointLight::getAttenuationEnd(), NL3D::CPointLight::getDiffuse(), NL3D::CPointLight::getPosition(), NL3D::CPointLight::getSpotAngleBegin(), NL3D::CPointLight::getSpotAngleEnd(), NL3D::CPointLight::getSpotDirection(), NL3D::CPointLight::getType(), IsSpot, min, nlassert, OOAttDelta, OOCosDelta, Pos, NLMISC::CRGBA::R, R, NLMISC::CBSphere::Radius, NLMISC::CAABBox::setCenter(), NLMISC::CAABBox::setHalfSize(), NL3D::CPointLight::SpotLight, and NLMISC::sqr().
Definition at line 71 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 73 of file patchdlm_context.h.
Referenced by compile().
Definition at line 57 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 82 of file patchdlm_context.h.
Referenced by compile(), and NL3D::CLandscape::computeDynamicLighting().
Definition at line 79 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), compile(), and NL3D::CLandscape::computeDynamicLighting().
Definition at line 65 of file patchdlm_context.h.
Referenced by compile().
Definition at line 67 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 63 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 57 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 59 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 75 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 69 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 61 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
Definition at line 57 of file patchdlm_context.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), and compile().
1.6.1