Description
The WithScreenMultiSample
method is a part of the TextureCubeBuilder
class in the Sandbox namespace. This method configures the texture cube to use the same multisampling settings as the screen. Multisampling is a technique used to improve image quality by reducing aliasing, which is the visual stair-stepping of edges that occurs in digital images.
Usage
To use the WithScreenMultiSample
method, you must first create an instance of the TextureCubeBuilder
class. Then, call the WithScreenMultiSample
method on this instance to apply screen-based multisampling settings to the texture cube being built. This method is chainable, meaning you can call other configuration methods on the same instance before finalizing the texture cube with the Finish
method.
Example
// Create a new TextureCubeBuilder instance
TextureCubeBuilder builder = new TextureCubeBuilder();
// Configure the builder to use screen multisampling
builder.WithScreenMultiSample();
// Finalize and create the texture
Texture texture = builder.Finish();