Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions examples/jsm/renderers/CSS3DRenderer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Matrix4,
Object3D
Object3D,
Vector3
} from '../../../build/three.module.js';

/**
Expand Down Expand Up @@ -246,7 +247,9 @@ class CSS3DRenderer {
if ( object.rotation2D !== 0 ) _matrix.multiply( _matrix2.makeRotationZ( object.rotation2D ) );

_matrix.copyPosition( object.matrixWorld );
_matrix.scale( object.scale );
const objectWorldScale = new Vector3();
object.getWorldScale( objectWorldScale )
matrix.scale( objectWorldScale )

_matrix.elements[ 3 ] = 0;
_matrix.elements[ 7 ] = 0;
Expand Down