FXAAEffectDesc
The FXAAEffectDesc class is a Descriptor that applies the FXAA (Fast Approximate Anti-Aliasing) anti-aliasing effect. It reduces jagged edges in the image, producing a smoother appearance.
Properties
Section titled “Properties”visible
Section titled “visible”Type: boolean | undefined
Description: Controls the visibility of the effect descriptor.
Default: true
Example:
{ visible: true }Usage Examples
Section titled “Usage Examples”Enabling FXAA anti-aliasing
Section titled “Enabling FXAA anti-aliasing”import ThreeView from "@navaramap/three";import { FXAAEffectDesc } from "@navaramap/three_default_descs";
const view = new ThreeView();await view.init();
// Add FXAA effect descriptorview.addEffect<FXAAEffectDesc>({ fxaa: {},});FXAAEffectDesc does not have special configuration parameters. It is applied at the final stage of the rendering pipeline. It is lighter than SMAA but slightly lower in quality. It is suitable when performance is a priority.