UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

29 lines (28 loc) 621 B
"use strict"; import { FrontSide, LineBasicMaterial, MeshStandardMaterial, PointsMaterial } from "three"; const MESH_MAT = new MeshStandardMaterial({ color: 16777215, vertexColors: true, side: FrontSide, metalness: 0, roughness: 0.9 }); const LINES_MAT = new LineBasicMaterial({ color: 16777215, linewidth: 1, vertexColors: true }); const POINTS_MAT = new PointsMaterial({ color: 16777215, size: 0.1, vertexColors: true }); export function tetMaterialMesh() { return MESH_MAT; } export function tetMaterialLine() { return LINES_MAT; } export function tetMaterialPoint() { return POINTS_MAT; }