Description
The Multisample4x
field is a member of the MultisampleAmount
enumeration in the Sandbox namespace. It represents a multisampling level of 4x, which is used to enhance the quality of rendered images by reducing aliasing effects. Multisampling is a technique used in graphics rendering to improve image quality by sampling a pixel multiple times at different locations and averaging the results.
Usage
Use Multisample4x
when you want to apply a 4x multisampling level to your rendering process. This setting is a balance between performance and visual quality, providing a noticeable improvement in image smoothness without a significant performance hit compared to higher levels of multisampling.
Example
// Example of setting a multisampling level in a rendering configuration
var renderSettings = new RenderSettings();
renderSettings.MultisampleLevel = MultisampleAmount.Multisample4x;
// Apply the render settings to a scene
Scene.Current.ApplyRenderSettings(renderSettings);