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 27 28 29 30 | import { Color } from "../core/Color"; import { Material } from "./Material"; //Outlined Mesh Lamert material /** @constructor */ export class MeshOutlineMaterial extends Material { fog: boolean; shaderID: string; wireframe: boolean; outlineColor: any; outlineWidth: any; outlinePushback: any; constructor(parameters?: any) { super(); parameters = parameters || {}; this.fog = true; this.shaderID = "outline"; this.wireframe = false; this.outlineColor = parameters.color || new Color(0.0, 0.0, 0.0); this.outlineWidth = parameters.width || 0.1; this.outlinePushback = parameters.pushback || 1.0; } clone<T extends this>(material: T = new MeshOutlineMaterial() as T): T { super.clone.call(this, material); material.fog = this.fog; material.shaderID = this.shaderID; material.wireframe = this.wireframe; return material; } } |