2018-05-28 09:49:45 +08:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2018-06-06 17:23:22 +08:00
|
|
|
var three_1 = require("three");
|
2018-05-28 09:49:45 +08:00
|
|
|
//板件的材质,使用这个材质避免板件将线覆盖.
|
|
|
|
exports.boardMaterial = new three_1.MeshBasicMaterial({
|
|
|
|
color: new three_1.Color(0.8, 0.8, 0.8),
|
|
|
|
polygonOffset: true,
|
|
|
|
polygonOffsetFactor: 1,
|
|
|
|
polygonOffsetUnits: 1
|
|
|
|
});
|
2018-05-31 11:12:29 +08:00
|
|
|
exports.selectMaterial = new three_1.MeshBasicMaterial({
|
|
|
|
color: new three_1.Color(0.1, 0.5, 0.5),
|
|
|
|
polygonOffset: true,
|
|
|
|
polygonOffsetFactor: 1,
|
|
|
|
polygonOffsetUnits: 1
|
|
|
|
});
|
2018-05-28 09:49:45 +08:00
|
|
|
//线框的材质
|
|
|
|
exports.edgeMaterial = new three_1.LineBasicMaterial({ linewidth: 2, color: new three_1.Color(0, 0, 0) });
|
|
|
|
//# sourceMappingURL=Material.js.map
|