瀏覽代碼

comments update

Garrett Johnson 5 年之前
父節點
當前提交
fca2ea8108
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/js/lines/LineSegments2.js
  2. 1 1
      examples/jsm/lines/LineSegments2.js

+ 1 - 1
examples/js/lines/LineSegments2.js

@@ -85,7 +85,7 @@ THREE.LineSegments2.prototype = Object.assign( Object.create( THREE.Mesh.prototy
 			var instanceStart = geometry.attributes.instanceStart;
 			var instanceEnd = geometry.attributes.instanceEnd;
 
-			// ndc space [ - 0.5, 0.5 ]
+			// ndc space [ - 1.0, 1.0 ]
 			ray.at( 1, ssOrigin );
 			ssOrigin.w = 1;
 			ssOrigin.applyMatrix4( camera.matrixWorldInverse );

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

@@ -98,7 +98,7 @@ LineSegments2.prototype = Object.assign( Object.create( Mesh.prototype ), {
 			var instanceStart = geometry.attributes.instanceStart;
 			var instanceEnd = geometry.attributes.instanceEnd;
 
-			// ndc space [ - 0.5, 0.5 ]
+			// ndc space [ - 1.0, 1.0 ]
 			ray.at( 1, ssOrigin );
 			ssOrigin.w = 1;
 			ssOrigin.applyMatrix4( camera.matrixWorldInverse );