Skip to content

Commit

Permalink
SVGRenderer: Fix clipping of SVGObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Jan 31, 2019
1 parent 53612df commit e4151d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/js/renderers/SVGRenderer.js
Expand Up @@ -252,7 +252,7 @@ THREE.SVGRenderer = function () {
_vector3.setFromMatrixPosition( object.matrixWorld );
_vector3.applyMatrix4( _viewProjectionMatrix );

if ( _vector3.z < 0 || _vector3.z > 1 ) return; // #15476
if ( _vector3.z < - 1 || _vector3.z > 1 ) return;

var x = _vector3.x * _svgWidthHalf;
var y = - _vector3.y * _svgHeightHalf;
Expand Down

0 comments on commit e4151d0

Please sign in to comment.