Inheritance diagram for NL3D::CSpecCubeMapFunctor:

Public Member Functions | |
| CSpecCubeMapFunctor (float exp) | |
| virtual NLMISC::CRGBA | operator() (const NLMISC::CVector &v) |
Data Fields | |
| float | Exp |
|
|
Definition at line 1247 of file driver_opengl_material.cpp. References Exp.
01247 : Exp(exp) {} |
|
|
Implements NL3D::ICubeMapFunctor. Definition at line 1248 of file driver_opengl_material.cpp.
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 }
|
|
|
Definition at line 1255 of file driver_opengl_material.cpp. Referenced by CSpecCubeMapFunctor(), and operator()(). |
1.3.6