Interface EmphasisMaterialParams

Parameters for a View's selected, highlighted and x-ray effects.

interface EmphasisMaterialParams {
    backfaces?: boolean;
    edgeAlpha?: number;
    edgeColor?: FloatArrayParam;
    edges?: boolean;
    edgeWidth?: number;
    fill?: boolean;
    fillAlpha?: number;
    fillColor?: FloatArrayParam;
    glowThrough?: boolean;
}

Properties

backfaces?: boolean

Whether EmphasisMaterial backfaces are visible.

Default is false.

edgeAlpha?: number

Opacity of EmphasisMaterial edges.

Value is in range [0..1].

Default is 1.

edgeColor?: FloatArrayParam

The RGB color of EmphasisMaterial edges.

Default is [0.2, 0.2, 0.2].

edges?: boolean

Whether EmphasisMaterial edges are visible.

Default is true.

edgeWidth?: number

Pixel width of EmphasisMaterial edges.

Default is 1.

fill?: boolean

Whether EmphasisMaterial surfaces are filled.

Default is true.

fillAlpha?: number

Opacity of EmphasisMaterial surfaces.

Value is in range [0..1].

Default is 1.

fillColor?: FloatArrayParam

The RGB color of EmphasisMaterial surfaces.

Default is [1.0, 1.0, 1.0].

glowThrough?: boolean

Sets whether to render emphasized objects over the top of other objects, as if they were "glowing through".

Default is true.

Note: updating this property will not affect the appearance of objects that are already emphasized.