Description
The WithMultiSample2X
method is a member of the TextureCubeBuilder
class in the Sandbox namespace. This method configures the texture cube to use 2x multisampling, which is a technique used to improve the quality of rendered images by reducing aliasing effects. Multisampling achieves this by sampling a pixel multiple times at different locations and averaging the results.
Usage
To use the WithMultiSample2X
method, you must first have an instance of TextureCubeBuilder
. Call this method on the instance to set the multisampling level to 2x. This method returns the same TextureCubeBuilder
instance, allowing for method chaining.
Example
// Example of using WithMultiSample2X
TextureCubeBuilder builder = new TextureCubeBuilder();
builder.WithMultiSample2X();
Texture texture = builder.Finish();
// The texture is now configured with 2x multisampling.