This reference page is linked to from the following overview
topics: Render
Elements.
Detailed Description
- See also:
- Class ShadeContext, Class Color.
- Description:
- An instance of this class is a data member of the ShadeContext. This is
used to contain the computed color and transparency of the pixel
being shaded by a material. All methods of this class are
implemented by the system.
- Data Members:
- ULONG flags;
These flags are not currently used.
Color c;
Shaded color of the pixel.
Color t;
Transparency of the pixel.
float ior;
Index of refraction of the pixel.
int gbufId;
The G-buffer ID. This allows the MixIn()
method to pick the id of the material which was blended in the
highest proportion.
#include <imtl.h>
List of all
members.
Constructor & Destructor Documentation
Member Function Documentation
- Parameters:
- ShadeOutput& a
The output of the texmap to blend in.
float f
The amount to blend in, i.e.:
a.MixIn(b, 1.0f) results in 100% of a and none of
b.
void Reset |
( |
int |
nEle = -1 |
) |
[inline] |
- Parameters:
- int n = -1
By supplying a negative value this method will clear elements but
leave the number of elements unchanged.
int NewElementVal |
( |
|
) |
[inline] |
int NElementVals |
( |
|
) |
[inline] |
void SetNElements |
( |
int |
n |
) |
[inline] |
AColor ElementVal |
( |
int |
n |
) |
[inline] |
void SetElementVal |
( |
int |
n, |
|
|
AColor |
c |
|
) |
|
[inline] |
void AccumElementVal |
( |
int |
n, |
|
|
AColor |
c |
|
) |
|
[inline] |
void Scale |
( |
float |
x |
) |
[inline] |
Member Data Documentation
ShadeOutput ShadeOutput ShadeOutput
ShadeOutput ShadeOutput ShadeOutput ShadeOutput ShadeOutput
ShadeOutput ShadeOutput
ShadeOutput ShadeOutput ShadeOutput
ShadeOutput ShadeOutput ShadeOutput ShadeOutput ShadeOutput
ShadeOutput ShadeOutput