PrtEngine.SetSamplingInfo Method |
Language: |
Sets sampling properties used by the precomputed radiance transfer (PRT) simulator.
Visual Basic Public Sub SetSamplingInfo( _
ByVal numberRays As Integer, _
ByVal isUsingSphere As Boolean, _
ByVal isUsingCosine As Boolean, _
ByVal isAdaptive As Boolean, _
ByVal adaptiveThreshold As Single _
)C# public void SetSamplingInfo(
int numberRays,
bool isUsingSphere,
bool isUsingCosine,
bool isAdaptive,
float adaptiveThreshold
);C++ public:
void SetSamplingInfo(
int numberRays,
bool isUsingSphere,
bool isUsingCosine,
bool isAdaptive,
float adaptiveThreshold
);JScript public function SetSamplingInfo(
numberRays : int,
isUsingSphere : boolean,
isUsingCosine : boolean,
isAdaptive : boolean,
adaptiveThreshold : float
);
numberRays System.Int32
Number of light rays to direct at each sample. Must be greater than zero.isUsingSphere System.Boolean
Set to true if samples will be computed over a full sphere. Set to false if samples will be computed over a hemisphere.isUsingCosine System.Boolean
Set to true to use a cosine weighting of samples. If both isUsingCosine and isUsingSphere are true, the method will fail.isAdaptive System.Boolean
Must be false. Adaptive sampling is currently not implemented.adaptiveThreshold System.Single
Ignored.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. NotImplementedException Not implemented. 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