diff --git a/src/materials/Material.js b/src/materials/Material.js index 659423f64ca616a229f12ce55f5180b594185d8d..78bc98471aa91b2ec65c3bb252d75c232ed00172 100644 --- a/src/materials/Material.js +++ b/src/materials/Material.js @@ -244,6 +244,10 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ), // rotation (SpriteMaterial) if ( this.rotation !== 0 ) data.rotation = this.rotation; + if ( this.polygonOffset === true ) data.polygonOffset = true; + if ( this.polygonOffsetFactor !== 0 ) data.polygonOffsetFactor = this.polygonOffsetFactor; + if ( this.polygonOffsetUnits !== 0 ) data.polygonOffsetUnits = this.polygonOffsetUnits; + if ( this.linewidth !== 1 ) data.linewidth = this.linewidth; if ( this.dashSize !== undefined ) data.dashSize = this.dashSize; if ( this.gapSize !== undefined ) data.gapSize = this.gapSize;