2
0
Эх сурвалжийг харах

Merge pull request #18888 from WestLangley/dev_clipping_advanced

Examples: Fix bug in weblg_clipping_advanced.html
Mr.doob 5 жил өмнө
parent
commit
5167cb943d

+ 5 - 3
examples/webgl_clipping_advanced.html

@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html lang="en">
 	<head>
-		<title>three.js webgl - clipping planes</title>
+		<title>three.js webgl - clipping planes - advanced</title>
 		<meta charset="utf-8">
 		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
 		<link type="text/css" rel="stylesheet" href="main.css">
@@ -249,8 +249,10 @@
 
 					} );
 
-					volumeVisualization.add(
-						new THREE.Mesh( planeGeometry, material ) );
+					var mesh = new THREE.Mesh( planeGeometry, material );
+					mesh.matrixAutoUpdate = false;
+
+					volumeVisualization.add( mesh );
 
 				}