Преглед на файлове

LineSegments2: Fix typo. (#30953)

Michael Herzog преди 1 година
родител
ревизия
74e6eed185
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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号