|
@@ -32,6 +32,8 @@ THREE.Material = function () {
|
|
|
|
|
|
this.colorWrite = true;
|
|
this.colorWrite = true;
|
|
|
|
|
|
|
|
+ this.precision = null; // override the renderer's default precision for this material
|
|
|
|
+
|
|
this.polygonOffset = false;
|
|
this.polygonOffset = false;
|
|
this.polygonOffsetFactor = 0;
|
|
this.polygonOffsetFactor = 0;
|
|
this.polygonOffsetUnits = 0;
|
|
this.polygonOffsetUnits = 0;
|
|
@@ -196,6 +198,8 @@ THREE.Material.prototype = {
|
|
this.depthTest = source.depthTest;
|
|
this.depthTest = source.depthTest;
|
|
this.depthWrite = source.depthWrite;
|
|
this.depthWrite = source.depthWrite;
|
|
|
|
|
|
|
|
+ this.precision = source.precision;
|
|
|
|
+
|
|
this.polygonOffset = source.polygonOffset;
|
|
this.polygonOffset = source.polygonOffset;
|
|
this.polygonOffsetFactor = source.polygonOffsetFactor;
|
|
this.polygonOffsetFactor = source.polygonOffsetFactor;
|
|
this.polygonOffsetUnits = source.polygonOffsetUnits;
|
|
this.polygonOffsetUnits = source.polygonOffsetUnits;
|