The Samples
property of the MotionBlur
class specifies the number of samples used to compute the motion blur effect. A higher number of samples can result in a smoother blur effect but may also increase the computational cost.
The Samples
property of the MotionBlur
class specifies the number of samples used to compute the motion blur effect. A higher number of samples can result in a smoother blur effect but may also increase the computational cost.
To adjust the number of samples for the motion blur effect, set the Samples
property to a value between 1 and 32. This property is decorated with the RangeAttribute
, ensuring that the value remains within this range.
// Create an instance of MotionBlur MotionBlur motionBlur = new MotionBlur(); // Set the number of samples for the motion blur effect motionBlur.Samples = 16; // Use the motion blur effect in a scene SceneCamera camera = new SceneCamera(); motionBlur.RenderEffect(camera);