#include <texture.h>

Public Member Functions | |
| SphericalMapping2D (const Transform &toSph) | |
| void | Map (const DifferentialGeometry &dg, float *s, float *t, float *dsdx, float *dtdx, float *dsdy, float *dtdy) const |
Private Member Functions | |
| void | sphere (const Point &P, float *s, float *t) const |
Private Attributes | |
| Transform | WorldToTexture |
Definition at line 52 of file texture.h.
| lux::SphericalMapping2D::SphericalMapping2D | ( | const Transform & | toSph | ) | [inline] |
| void lux::SphericalMapping2D::Map | ( | const DifferentialGeometry & | dg, | |
| float * | s, | |||
| float * | t, | |||
| float * | dsdx, | |||
| float * | dtdx, | |||
| float * | dsdy, | |||
| float * | dtdy | |||
| ) | const [virtual] |
Implements lux::TextureMapping2D.
Definition at line 83 of file texture.cpp.
References lux::DifferentialGeometry::dpdx, lux::DifferentialGeometry::dpdy, lux::DifferentialGeometry::p, and sphere().
| void lux::SphericalMapping2D::sphere | ( | const Point & | P, | |
| float * | s, | |||
| float * | t | |||
| ) | const [private] |
Definition at line 101 of file texture.cpp.
References INV_PI, INV_TWOPI, lux::Normalize(), lux::SphericalPhi(), lux::SphericalTheta(), and WorldToTexture.
Referenced by Map().
1.5.9