Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import { Color } from "../core/Color"; import { Material } from "./Material"; //Line basic material /** @constructor */ export class LineBasicMaterial extends Material { color = new Color(0xffffff); linewidth = 1; linecap = "round"; linejoin = "round"; vertexColors = false; fog = true; shaderID = "basic"; constructor(parameters?: any) { super(); this.setValues(parameters); } clone<T extends this>(material: T = new LineBasicMaterial() as T): T { super.clone.call(this, material); material.color.copy(this.color); return material as T; } } |