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 31 | import { Color } from "../core/Color"; import { ImposterMaterial } from "./ImposterMaterial"; export class StickImposterOutlineMaterial extends ImposterMaterial { shaderID = "stickimposteroutline"; outlineColor = new Color(0.0, 0.0, 0.0); outlineWidth = 0.1; outlinePushback = 1.0; constructor( parameters: Record<keyof StickImposterOutlineMaterial, unknown> & { width?: number; pushback?: number; } = {} as any ) { super(parameters); Iif (parameters.color) this.outlineColor = parameters.color as Color; Iif (parameters.width) this.outlineWidth = parameters.width as number; Iif (parameters.pushback) this.outlinePushback = parameters.pushback as number; this.setValues(parameters); } clone<T extends this>(material = new StickImposterOutlineMaterial() as T): T { super.clone.call(this, material); material.outlineColor = this.outlineColor; material.outlineWidth = this.outlineWidth; material.outlinePushback = this.outlinePushback; return material; } } |