Description
The MultisampleAmount
enumeration defines the levels of multisampling available for rendering in the Sandbox environment. Multisampling is a technique used to improve image quality by reducing aliasing, which is the visual stair-stepping effect that can occur along the edges of objects.
The Multisample2x
field represents a 2x multisampling level, which means that each pixel is sampled twice to produce a smoother image. This is a balance between performance and quality, offering improved visuals with moderate impact on rendering performance.
Usage
To use the Multisample2x
setting, you can assign it to a rendering configuration or graphics setting within your Sandbox application. This is typically done when setting up the graphics pipeline or configuring a scene's rendering options.
Example usage:
Scene.Current.MultisampleSetting = MultisampleAmount.Multisample2x;
This line of code sets the current scene's multisampling level to 2x, enhancing the visual quality of rendered objects.
Example
// Set the multisampling level to 2x for the current scene
Scene.Current.MultisampleSetting = MultisampleAmount.Multisample2x;