#include <WaterTexture.h>
Public Member Functions | |
WaterTexture () | |
virtual | ~WaterTexture () |
virtual RGBAColor | getColor (const Point2D &p) const |
virtual Vec3D | getBump (const Point2D &p, const float &scale, const Matrix4D &onb) const |
float | getScale (const Point3D &hit, float disturbation, float widthFactor, bool &down, Vec3D &radius) const |
void | setWidth (const float &w) |
void | setIntensity (const float &i) |
Private Attributes | |
float | width |
float | intensity |
Definition at line 10 of file WaterTexture.h.
rcrt::WaterTexture::WaterTexture | ( | ) |
Definition at line 7 of file WaterTexture.cpp.
rcrt::WaterTexture::~WaterTexture | ( | ) | [virtual] |
Definition at line 11 of file WaterTexture.cpp.
Vec3D rcrt::WaterTexture::getBump | ( | const Point2D & | p, | |
const float & | scale, | |||
const Matrix4D & | onb | |||
) | const [virtual] |
Implements rcrt::Texture2D.
Definition at line 15 of file WaterTexture.cpp.
References rcrt::Texture< T >::frame, intensity, PerlinNoise::turbulence(), and width.
float rcrt::WaterTexture::getScale | ( | const Point3D & | hit, | |
float | disturbation, | |||
float | widthFactor, | |||
bool & | down, | |||
Vec3D & | radius | |||
) | const |
void rcrt::WaterTexture::setWidth | ( | const float & | w | ) |
void rcrt::WaterTexture::setIntensity | ( | const float & | i | ) |
float rcrt::WaterTexture::width [private] |
float rcrt::WaterTexture::intensity [private] |