From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a02679.html | 119 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 docs/doxygen/nel/a02679.html (limited to 'docs/doxygen/nel/a02679.html') diff --git a/docs/doxygen/nel/a02679.html b/docs/doxygen/nel/a02679.html new file mode 100644 index 00000000..c90ce831 --- /dev/null +++ b/docs/doxygen/nel/a02679.html @@ -0,0 +1,119 @@ + + +NeL: NL3D::CInstanceLighter::CPredPointLightToPoint struct Reference + + + +
+

NL3D::CInstanceLighter::CPredPointLightToPoint Struct Reference


Detailed Description

+For sort(). +

+ +

+Definition at line 244 of file instance_lighter.h. + + + + + + + +

Public Member Functions

bool operator() (CPointLightRT *pla, CPointLightRT *plb) const

Data Fields

CVector Point
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
bool NL3D::CInstanceLighter::CPredPointLightToPoint::operator() CPointLightRT pla,
CPointLightRT plb
const
+
+ + + + + +
+   + + +

+ +

+Definition at line 1140 of file instance_lighter.cpp. +

+References NL3D::CInstanceLighter::CPointLightRT::BSphere, NLMISC::CBSphere::Center, NLMISC::clamp(), NL3D::CPointLight::getAttenuationEnd(), NL3D::CInstanceLighter::CPointLightRT::OODeltaAttenuation, and NL3D::CInstanceLighter::CPointLightRT::PointLight. +

+

01141 {
+01142         float   ra= (pla->BSphere.Center - Point).norm();
+01143         float   rb= (plb->BSphere.Center - Point).norm();
+01144         float   infA= (pla->PointLight.getAttenuationEnd() - ra) * pla->OODeltaAttenuation;
+01145         float   infB= (plb->PointLight.getAttenuationEnd() - rb) * plb->OODeltaAttenuation;
+01146         // It is important to clamp, else strange results...
+01147         clamp(infA, 0.f, 1.f);
+01148         clamp(infB, 0.f, 1.f);
+01149         // return which light impact the most.
+01150         // If same impact
+01151         if(infA==infB)
+01152                 // return nearest
+01153                 return ra < rb;
+01154         else
+01155                 // return better impact
+01156                 return  infA > infB;
+01157 }
+
+


Field Documentation

+

+ + + + +
+ + +
CVector NL3D::CInstanceLighter::CPredPointLightToPoint::Point +
+
+ + + + + +
+   + + +

+ +

+Definition at line 246 of file instance_lighter.h. +

+Referenced by NL3D::CInstanceLighter::processIGPointLightRT().

+


The documentation for this struct was generated from the following files: +
Generated on Tue Mar 16 06:47:44 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1