We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efcca9a commit 2d978cbCopy full SHA for 2d978cb
examples/jsm/lines/LineMaterial.js
@@ -311,6 +311,9 @@ ShaderLib[ 'line' ] = {
311
312
void main() {
313
314
+ float alpha = opacity;
315
+ vec4 diffuseColor = vec4( diffuse, alpha );
316
+
317
#include <clipping_planes_fragment>
318
319
#ifdef USE_DASH
@@ -321,8 +324,6 @@ ShaderLib[ 'line' ] = {
321
324
322
325
#endif
323
326
- float alpha = opacity;
-
327
#ifdef WORLD_UNITS
328
329
// Find the closest points on the view ray and the line segment
@@ -387,8 +388,6 @@ ShaderLib[ 'line' ] = {
387
388
389
390
- vec4 diffuseColor = vec4( diffuse, alpha );
391
392
#include <logdepthbuf_fragment>
393
#include <color_fragment>
394
0 commit comments