Microsoft DirectX 9.0 SDK Update (October 2004)

PrtEngine.MultiplyAlbedo Method

Language:

Note: This documentation is preliminary and is subject to change.

Multiplies each precomputed radiance transfer (PRT) vector by the per-vertex albedo.

Definition

Visual Basic .NET Public Sub MultiplyAlbedo( _
    ByVal data As PrtBuffer _
)
C# public void MultiplyAlbedo(
    PrtBuffer data
);
Managed C++ public: void MultiplyAlbedo(
    PrtBuffer *data
);
JScript .NET public function MultiplyAlbedo(
    data : PrtBuffer
);

Parameters

data Microsoft.DirectX.Direct3D.PrtBuffer. An output PrtBuffer object that will contain precomputed radiance transfer (PRT) vectors multiplied by the per-vertex albedo.

Remarks

If this output buffer is a texture object, then care must be taken to store the albedo of the texture at the same resolution as the simulation buffer.

The Compute... methods compute output buffers in which the light signal has not been multiplied by albedo. By not multiplying the albedo, you can model albedo variation at a finer scale than the source radiance, thereby yielding more accurate results from compression.

To include albedo in the rendered light model, call this method after one of the Compute... methods.

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center