Accueil / npm / three@0.172.0 / examples / jsm / lines / webgpu / Line2.js

Line2.js

import { Line2NodeMaterial } from 'three/webgpu';

import { LineSegments2 } from './LineSegments2.js';
import { LineGeometry } from '../LineGeometry.js';


class Line2 extends LineSegments2 {

	constructor( geometry = new LineGeometry(), material = new Line2NodeMaterial( { color: Math.random() * 0xffffff } ) ) {

		super( geometry, material );

		this.isLine2 = true;

		this.type = 'Line2';

	}

}

export { Line2 };

Exemple