Share via


PrtEngine.MultiplyAlbedo(PrtBuffer) Method (Microsoft.DirectX.Direct3D)

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

Definition

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

Parameters

data Microsoft.DirectX.Direct3D.PrtBuffer
An output PrtBuffer object that will contain 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.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.

See Also