Skip to content

Commit b22db83

Browse files
authored
Merge pull request #14076 from bGute/patch-2
Update Material.toJSON
2 parents 8835fa8 + dbbff29 commit b22db83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/materials/Material.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
244244
// rotation (SpriteMaterial)
245245
if ( this.rotation !== 0 ) data.rotation = this.rotation;
246246

247+
if ( this.polygonOffset === true ) data.polygonOffset = true;
248+
if ( this.polygonOffsetFactor !== 0 ) data.polygonOffsetFactor = this.polygonOffsetFactor;
249+
if ( this.polygonOffsetUnits !== 0 ) data.polygonOffsetUnits = this.polygonOffsetUnits;
250+
247251
if ( this.linewidth !== 1 ) data.linewidth = this.linewidth;
248252
if ( this.dashSize !== undefined ) data.dashSize = this.dashSize;
249253
if ( this.gapSize !== undefined ) data.gapSize = this.gapSize;

0 commit comments

Comments
 (0)