Description
The Multisample4x
field is a member of the MultisampleAmount
enumeration within the Sandbox namespace. It represents a multisampling level of 4x, which is used to enhance the visual quality of rendered scenes by reducing aliasing effects. Multisampling is a technique used in graphics rendering to smooth out edges and improve image quality.
Usage
Use Multisample4x
when you want to apply a 4x level of multisampling 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 the multisampling level to 4x in a rendering configuration
Scene currentScene = Scene.Current;
currentScene.MultisampleAmount = MultisampleAmount.Multisample4x;
// This will apply 4x multisampling to the current scene, improving visual quality.