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/a03433.html | 140 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 docs/doxygen/nel/a03433.html (limited to 'docs/doxygen/nel/a03433.html') diff --git a/docs/doxygen/nel/a03433.html b/docs/doxygen/nel/a03433.html new file mode 100644 index 00000000..c7b5d7cb --- /dev/null +++ b/docs/doxygen/nel/a03433.html @@ -0,0 +1,140 @@ + + +NeL: NL3D::CSpecCubeMapFunctor struct Reference + + + +
+

NL3D::CSpecCubeMapFunctor Struct Reference

Inheritance diagram for NL3D::CSpecCubeMapFunctor: +

+ +NL3D::ICubeMapFunctor + + + + + + + + + + + +

Public Member Functions

 CSpecCubeMapFunctor (float exp)
virtual NLMISC::CRGBA operator() (const NLMISC::CVector &v)

Data Fields

float Exp
+

Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + +
NL3D::CSpecCubeMapFunctor::CSpecCubeMapFunctor float  exp  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 1247 of file driver_opengl_material.cpp. +

+References Exp. +

+

01247 : Exp(exp) {}
+
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
virtual NLMISC::CRGBA NL3D::CSpecCubeMapFunctor::operator() const NLMISC::CVector v  )  [inline, virtual]
+
+ + + + + +
+   + + +

+ +

+Implements NL3D::ICubeMapFunctor. +

+Definition at line 1248 of file driver_opengl_material.cpp. +

+References Exp, uint8, and v. +

+

01249         {
+01250                 
+01251                 uint8 intensity = (uint8) (255.f * ::powf(std::max(v.normed().z, 0.f), Exp));
+01252                 return NLMISC::CRGBA(intensity, intensity, intensity, intensity);               
+01253                 //return Exp == 1.f ? CRGBA((uint8)(v.x*127+127), (uint8)(v.y*127+127), (uint8)(v.z*127+127), 0): CRGBA::Black;
+01254         }
+
+


Field Documentation

+

+ + + + +
+ + +
float NL3D::CSpecCubeMapFunctor::Exp +
+
+ + + + + +
+   + + +

+ +

+Definition at line 1255 of file driver_opengl_material.cpp. +

+Referenced by CSpecCubeMapFunctor(), and operator()().

+


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