#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 60 of file texture.h.
SphericalMapping2D::SphericalMapping2D | ( | const Transform & | toSph | ) | [inline] |
void SphericalMapping2D::Map | ( | const DifferentialGeometry & | dg, | |
float * | s, | |||
float * | t, | |||
float * | dsdx, | |||
float * | dtdx, | |||
float * | dsdy, | |||
float * | dtdy | |||
) | const [virtual] |
Implements TextureMapping2D.
Definition at line 93 of file texture.cpp.
References DifferentialGeometry::dpdx, DifferentialGeometry::dpdy, DifferentialGeometry::p, and sphere().
void SphericalMapping2D::sphere | ( | const Point & | P, | |
float * | s, | |||
float * | t | |||
) | const [private] |
Definition at line 113 of file texture.cpp.
References INV_PI, INV_TWOPI, Normalize(), SphericalPhi(), SphericalTheta(), and WorldToTexture.
Referenced by Map().
Transform SphericalMapping2D::WorldToTexture [private] |