📄 threejs/Addons/Materials/LDrawConditionalLineMaterial

File: LDrawConditionalLineMaterial.md | Updated: 11/15/2025


title: LDrawConditionalLineMaterial category: Addons layout: docs

LDrawConditionalLineMaterial

A special line material for meshes loaded via LDrawLoader.

This module can only be used with WebGLRenderer. When using WebGPURenderer, import the class from LDrawConditionalLineNodeMaterial.js.

Import

LDrawConditionalLineMaterial is an addon, and must be imported explicitly, see Installation#Addons.

import { LDrawConditionalLineMaterial } from 'three/addons/materials/LDrawConditionalLineMaterial.js';

Constructor

new LDrawConditionalLineMaterial( parameters : Object )

Constructs a new conditional line material.

parameters | An object with one or more properties defining the material's appearance. Any property of the material (including any property from inherited materials) can be passed in here. Color values can be passed any type of value accepted by Color#set.
---|---

Properties

.color : Color

The material's color.

Default is (1,1,1).

.isLDrawConditionalLineMaterial : boolean (readonly)

This flag can be used for type testing.

Default is true.

.opacity : number

The material's opacity.

Default is 1.

Overrides: ShaderMaterial#opacity

Source

examples/jsm/materials/LDrawConditionalLineMaterial.js