Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions examples/jsm/lines/LineMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ ShaderLib[ 'line' ] = {

void main() {

float alpha = opacity;
vec4 diffuseColor = vec4( diffuse, alpha );

#include <clipping_planes_fragment>

#ifdef USE_DASH
Expand All @@ -321,8 +324,6 @@ ShaderLib[ 'line' ] = {

#endif

float alpha = opacity;

#ifdef WORLD_UNITS

// Find the closest points on the view ray and the line segment
Expand Down Expand Up @@ -387,8 +388,6 @@ ShaderLib[ 'line' ] = {

#endif

vec4 diffuseColor = vec4( diffuse, alpha );

#include <logdepthbuf_fragment>
#include <color_fragment>

Expand Down