Ver código fonte

LineSegments2: Fix typo. (#30953)

Michael Herzog 10 meses atrás
pai
commit
74e6eed185
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      examples/jsm/lines/webgpu/LineSegments2.js

+ 2 - 1
examples/jsm/lines/webgpu/LineSegments2.js

@@ -94,9 +94,10 @@ function raycastWorldUnits( lineSegments, intersects ) {
 function raycastScreenSpace( lineSegments, camera, intersects ) {
 
 	const projectionMatrix = camera.projectionMatrix;
-	const resolution = lineSegments.resolution;
 	const matrixWorld = lineSegments.matrixWorld;
 
+	const resolution = lineSegments._resolution;
+
 	const geometry = lineSegments.geometry;
 	const instanceStart = geometry.attributes.instanceStart;
 	const instanceEnd = geometry.attributes.instanceEnd;

粤ICP备19079148号