Skip to main content

Gradients

Gradients contains all the data to interpolate u,v texture coordinates and z coordinates across a planar surface.

Public Functions

Gradients(const Point3D * vertices)
Initializes a new instance of the TextureMapTypes class.

Public Attributes

floatdOneOverZdX
d(1/z)/dX
floatdOneOverZdY
d(1/z)/dY
fixed16_16dUdXModifier
The dUdX x coordinate modifier.
floatdUOverZdX
d(u/z)/dX
floatdUOverZdY
d(u/z)/dY
fixed16_16dVdXModifier
The dVdX x coordinate modifier.
floatdVOverZdX
d(v/z)/dX
floatdVOverZdY
d(v/z)/dY
floatoneOverZ
1/z for each vertex
floatUOverZ
u/z for each vertex
floatVOverZ
v/z for each vertex

Public Functions Documentation

Gradients

Gradients(const Point3D *vertices)

Initializes a new instance of the TextureMapTypes class.

Construct the gradients using three 3D vertices.

Parameters:
verticesThe vertices.
See also:

Public Attributes Documentation

dOneOverZdX

float dOneOverZdX

d(1/z)/dX

dOneOverZdY

float dOneOverZdY

d(1/z)/dY

dUdXModifier

fixed16_16 dUdXModifier

The dUdX x coordinate modifier.

dUOverZdX

float dUOverZdX

d(u/z)/dX

dUOverZdY

float dUOverZdY

d(u/z)/dY

dVdXModifier

fixed16_16 dVdXModifier

The dVdX x coordinate modifier.

dVOverZdX

float dVOverZdX

d(v/z)/dX

dVOverZdY

float dVOverZdY

d(v/z)/dY

oneOverZ

float oneOverZ

1/z for each vertex

UOverZ

float UOverZ

u/z for each vertex

VOverZ

float VOverZ

v/z for each vertex