Skip to content

Commit 7ed5131

Browse files
authored
Merge pull request #13999 from WestLangley/dev-fat_line_clipping
Fat Lines: clipping support
2 parents e1032ae + d27bdc1 commit 7ed5131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/js/lines/LineMaterial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ THREE.ShaderLib[ 'line' ] = {
168168
169169
gl_Position = clip;
170170
171-
#include <logdepthbuf_vertex>
171+
vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation
172172
173-
#include <worldpos_vertex>
173+
#include <logdepthbuf_vertex>
174174
#include <clipping_planes_vertex>
175175
#include <fog_vertex>
176176

0 commit comments

Comments
 (0)