![]() |
![]() |
![]() |
PrtEngine.MultiplyAlbedo Method |
Language: |
Multiplies each precomputed radiance transfer (PRT) vector by the per-vertex albedo.
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
);
data Microsoft.DirectX.Direct3D.PrtBuffer. An output PrtBuffer object that will contain precomputed radiance transfer (PRT) vectors multiplied by the per-vertex albedo.
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 Microsoft® Direct3D® could not allocate sufficient memory to complete the call.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center