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 can help reduce aliasing effects by sampling each pixel multiple times and averaging the results. This is particularly useful in rendering scenarios where image quality is a priority.
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();
// Continue configuring the builder
builder.WithSize(256, 256)
.WithFormat(ImageFormat.RGBA8)
.Finish();