Explorar o código

"flat" does not need camera transform

yomotsu %!s(int64=8) %!d(string=hai) anos
pai
achega
97102937a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/renderers/CSS3DRenderer.js

+ 1 - 1
examples/js/renderers/CSS3DRenderer.js

@@ -298,7 +298,7 @@ THREE.CSS3DRenderer = function () {
 		var style = cameraCSSMatrix +
 			'translate(' + _widthHalf + 'px,' + _heightHalf + 'px)';
 
-		if ( cache.camera.style !== style ) {
+		if ( !isFlatTransform && cache.camera.style !== style ) {
 
 			cameraElement.style.WebkitTransform = style;
 			cameraElement.style.MozTransform = style;