float Scale { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Scale property of the MotionBlur class determines the intensity of the motion blur effect applied to the camera. It is a floating-point value that can be adjusted to control how pronounced the blur effect appears.

Usage

To use the Scale property, you can set it to a value between 0 and 1, where 0 means no blur effect and 1 means maximum blur effect. This property is typically used in conjunction with other properties of the MotionBlur class to fine-tune the visual output.

Example

// Example of setting the Scale property for motion blur effect
MotionBlur motionBlur = new MotionBlur();
motionBlur.Scale = 0.5f; // Sets the motion blur intensity to 50%

// Apply the motion blur effect to a scene camera
SceneCamera camera = new SceneCamera();
motionBlur.RenderEffect(camera);