#include <texture.h>
Public Member Functions | |
CylindricalMapping2D (const Transform &toCyl) | |
void | Map (const DifferentialGeometry &dg, float *s, float *t, float *dsdx, float *dtdx, float *dsdy, float *dtdy) const |
Private Member Functions | |
void | cylinder (const Point &P, float *s, float *t) const |
Private Attributes | |
Transform | WorldToTexture |
Definition at line 65 of file texture.h.
lux::CylindricalMapping2D::CylindricalMapping2D | ( | const Transform & | toCyl | ) | [inline] |
void lux::CylindricalMapping2D::cylinder | ( | const Point & | P, | |
float * | s, | |||
float * | t | |||
) | const [private] |
Definition at line 129 of file texture.cpp.
References M_PI, lux::Normalize(), WorldToTexture, lux::Vector::x, lux::Vector::y, and lux::Vector::z.
Referenced by Map().
void lux::CylindricalMapping2D::Map | ( | const DifferentialGeometry & | dg, | |
float * | s, | |||
float * | t, | |||
float * | dsdx, | |||
float * | dtdx, | |||
float * | dsdy, | |||
float * | dtdy | |||
) | const [virtual] |
Implements lux::TextureMapping2D.
Definition at line 111 of file texture.cpp.
References cylinder(), lux::DifferentialGeometry::dpdx, lux::DifferentialGeometry::dpdy, and lux::DifferentialGeometry::p.
Definition at line 77 of file texture.h.
Referenced by cylinder().