Skip to content

Commit ef4004f

Browse files
committed
Make CSS3DRenderer respect CSS3DSprite scale
1 parent a32ee68 commit ef4004f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

examples/js/renderers/CSS3DRenderer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ THREE.CSS3DRenderer = function () {
170170
_tmpMatrix.copy( camera.matrixWorldInverse );
171171
_tmpMatrix.transpose();
172172
_tmpMatrix.extractPosition( object.matrixWorld );
173+
_tmpMatrix.scale( object.scale );
173174

174175
_tmpMatrix.elements[ 3 ] = 0;
175176
_tmpMatrix.elements[ 7 ] = 0;

0 commit comments

Comments
 (0)