|
|
@@ -164,6 +164,24 @@ class MeshMatcapMaterial extends Material {
|
|
|
*/
|
|
|
this.alphaMap = null;
|
|
|
|
|
|
+ /**
|
|
|
+ * Renders the geometry as a wireframe.
|
|
|
+ *
|
|
|
+ * @type {boolean}
|
|
|
+ * @default false
|
|
|
+ */
|
|
|
+ this.wireframe = false;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Controls the thickness of the wireframe.
|
|
|
+ *
|
|
|
+ * Can only be used with {@link SVGRenderer}.
|
|
|
+ *
|
|
|
+ * @type {number}
|
|
|
+ * @default 1
|
|
|
+ */
|
|
|
+ this.wireframeLinewidth = 1;
|
|
|
+
|
|
|
/**
|
|
|
* Whether the material is rendered with flat shading or not.
|
|
|
*
|
|
|
@@ -210,6 +228,9 @@ class MeshMatcapMaterial extends Material {
|
|
|
|
|
|
this.alphaMap = source.alphaMap;
|
|
|
|
|
|
+ this.wireframe = source.wireframe;
|
|
|
+ this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+
|
|
|
this.flatShading = source.flatShading;
|
|
|
|
|
|
this.fog = source.fog;
|