Skip to content

Commit 4395051

Browse files
committed
lighting tweaks, epsilon: 0
1 parent c07e34c commit 4395051

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/traces/streamtubes/convert.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -912,22 +912,14 @@ function calculateMesh(inputX, inputY, inputZ, scalingFactor) {
912912
]}),
913913
cells:I.map(function(d, i) {return [I[i], J[i], K[i]]}),
914914
meshColor: [0.12156862745098039,0.4666666666666667,0.9058823529411765,1],
915-
opacity:1,
915+
opacity: 1,
916916
lightPosition: [1e6 * scalingFactor[0], 1e6 * scalingFactor[1], 1e6 * scalingFactor[2]],
917-
ambient: 0.4,
918-
diffuse: 0.5,
917+
ambient: 0,
918+
diffuse: 1,
919919
specular: 0.3,
920920
roughness: 0.1,
921921
fresnel: 0,
922-
vertexNormalsEpsilon: 1e-15
922+
vertexNormalsEpsilon: 0
923923
}
924-
925-
return {
926-
"positions": [[0.5,0.75,0.6000000000000001],[0.3333333333333333,0.25,0.4],[1.1666666666666665,0.5,0.8],[0.6666666666666666,0.75,1],[0.16666666666666666,1,0.4]],
927-
"cells":[[0,2,3],[1,2,0],[4,0,3],[4,1,0]],
928-
"meshColor":[0.12156862745098039,0.4666666666666667,0.7058823529411765,1],
929-
"opacity":1
930-
}
931-
932924
}
933925

0 commit comments

Comments
 (0)