Capítulo 59 de 859

Chapter 59: LDrawConditionalLineMaterial

Core Idea

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.

Key Concepts

  • color : Color: The material's color.
  • isLDrawConditionalLineMaterial : boolean (readonly): This flag can be used for type testing.
  • opacity : number: The material's opacity.

Code Examples

import { LDrawConditionalLineMaterial } from 'three/addons/materials/LDrawConditionalLineMaterial.js';
  • What it demonstrates: Typical usage of LDrawConditionalLineMaterial.

Reference Tables

Constructor

Signature
new LDrawConditionalLineMaterial( parameters : Object )

Properties

PropertyDescription
.color : ColorThe material's color.
.isLDrawConditionalLineMaterial : boolean (readonly)This flag can be used for type testing.
.opacity : numberThe material's opacity.

Key Takeaways

  1. LDrawConditionalLineMaterial extends: EventDispatcher → Material → ShaderMaterial
  2. Most relevant properties: color, isLDrawConditionalLineMaterial, opacity.

Connects To