Description
The MultisampleNone
field is a member of the MultisampleAmount
enumeration in the Sandbox namespace. It represents a multisampling option where no multisampling is applied. This is typically used when you want to disable multisampling for rendering, which can improve performance at the cost of visual quality.
Usage
Use MultisampleNone
when you want to disable multisampling in your rendering pipeline. This can be useful in scenarios where performance is a higher priority than visual fidelity, such as in low-end hardware or when rendering complex scenes where multisampling might introduce a significant performance overhead.
Example
// Example of setting the multisample amount to none
var renderSettings = new RenderSettings();
renderSettings.MultisampleAmount = MultisampleAmount.MultisampleNone;
// Apply the render settings to a scene
Scene.Current.ApplyRenderSettings(renderSettings);