Michael Herzog 1 год назад
Родитель
Сommit
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号