![]() |
![]() |
![]() |
PrtEngine.ScaleMeshChunk Method |
Language: |
Scales all the samples associated with a given submesh. The method is useful for computing subsurface scattering.
Visual Basic Public Sub ScaleMeshChunk( _
ByVal meshChunk As Integer, _
ByVal scale As Single, _
ByVal data As PrtBuffer _
)C# public void ScaleMeshChunk(
int meshChunk,
float scale,
PrtBuffer data
);C++ public:
void ScaleMeshChunk(
int meshChunk,
float scale,
PrtBuffer^ data
);JScript public function ScaleMeshChunk(
meshChunk : int,
scale : float,
data : PrtBuffer
);
meshChunk System.Int32
Location in the mesh at which to start scaling samples.scale System.Single
Value by which to multiply each vector in the submesh.data Microsoft.DirectX.Direct3D.PrtBuffer
A PrtBuffer object to receive rescaled samples in the submesh.
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.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center