Description
The Trilinear
field is a member of the ImageRendering
enumeration within the Sandbox.UI
namespace. It represents the trilinear filtering method, which is a texture filtering technique used to smooth textures on 3D models. Trilinear filtering improves the visual quality of textures when viewed at various angles and distances by interpolating between mipmap levels.
Usage
Use the Trilinear
field when you want to apply trilinear filtering to an image or texture in your UI. This is particularly useful in scenarios where you need smooth transitions between mipmap levels, such as in 3D rendering or when scaling images.
Example
// Example of setting image rendering to Trilinear
var imageComponent = new ImageComponent();
imageComponent.Rendering = ImageRendering.Trilinear;