IFClite TypeScript API
    Preparing search index...

    Interface VisualEnhancementOptions

    interface VisualEnhancementOptions {
        contactShading?: {
            intensity?: number;
            quality?: ContactShadingQuality;
            radius?: number;
        };
        edgeContrast?: { enabled?: boolean; intensity?: number };
        enabled?: boolean;
        separationLines?: {
            enabled?: boolean;
            intensity?: number;
            quality?: SeparationLinesQuality;
            radius?: number;
        };
    }
    Index
    contactShading?: {
        intensity?: number;
        quality?: ContactShadingQuality;
        radius?: number;
    }

    Screen-space ambient occlusion (the option keeps its historical name). Darkens corners, junctions and contact areas from the depth buffer; the sky and background are never darkened. Paused while navigating on GPUs that miss frames (see RenderOptions.isInteracting).

    Type Declaration

    • Optionalintensity?: number

      Darkening strength, 0-1 (clamped). Default 0.8.

    • Optionalquality?: ContactShadingQuality

      'low': half-resolution AO, 12 taps. 'high': full resolution, 16 taps. Default 'off'.

    • Optionalradius?: number

      Occlusion radius in WORLD units (metres for IFC models), 0.05-10 (clamped). Geometry farther than this from a point does not occlude it. Default 1.

    edgeContrast?: { enabled?: boolean; intensity?: number }

    No effect since #5746: edges come from the edge pass, see separationLines. Kept so existing settings type-check.

    enabled?: boolean
    separationLines?: {
        enabled?: boolean;
        intensity?: number;
        quality?: SeparationLinesQuality;
        radius?: number;
    }