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 the Multisample4x
field when you want to set the multisampling level to 4x in your rendering settings. This can be particularly useful in scenarios where you need a balance between performance and visual quality.
Example
// Example of setting the multisampling level to 4x
Scene.Current.MultisampleAmount = MultisampleAmount.Multisample4x;
// This will apply 4x multisampling to the current scene, improving the visual quality by reducing jagged edges.