Interface ThickLinesTechniqueParams

Thick-line draw path. Quad-expands every line in the vertex shader and antialiases the edges in the fragment shader, so lines render at any pixel thickness on every WebGL2 backend — including ones that clamp gl.LINES to a single pixel.

Applies to LinesPrimitive meshes and to the edge index buffer of TrianglesPrimitive meshes; ignored on Points meshes.

interface ThickLinesTechniqueParams {
    id: string;
    lineWidth?: number;
    type: "thickLines";
    widthMode?: ThickLinesWidthMode;
}

Hierarchy (View Summary)

Properties

id: string

ID for the new technique. Must be unique within its containing SceneModel's techniques registry.

lineWidth?: number

Pixel thickness for line meshes carrying this technique. 0 or undefined means "fall back to the View's linesMaterial.lineWidth"; any positive value overrides that fallback per-technique.

type: "thickLines"

Discriminator for SceneTechniqueParams.

Whether lineWidth is interpreted in screen space (constant pixel thickness at every depth) or perspective space (diminishes with distance). Default "screen".

See ThickLinesWidthMode.