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

Merge pull request #13999 from WestLangley/dev-fat_line_clipping

Fat Lines: clipping support
Mr.doob преди 7 години
родител
ревизия
7ed51314b4
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      examples/js/lines/LineMaterial.js

+ 2 - 2
examples/js/lines/LineMaterial.js

@@ -168,9 +168,9 @@ THREE.ShaderLib[ 'line' ] = {
 
 			gl_Position = clip;
 
-			#include <logdepthbuf_vertex>
+			vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation
 
-			#include <worldpos_vertex>
+			#include <logdepthbuf_vertex>
 			#include <clipping_planes_vertex>
 			#include <fog_vertex>