@@ -391,7 +391,7 @@ function drawCore (params, transparent) {
391
391
// Draw contour levels
392
392
for ( i = 0 ; i < 3 ; ++ i ) {
393
393
shader . uniforms . permutation = PERMUTATIONS [ i ]
394
- gl . lineWidth ( this . contourWidth [ i ] )
394
+ gl . lineWidth ( this . contourWidth [ i ] * this . pixelRatio )
395
395
396
396
for ( j = 0 ; j < this . contourLevels [ i ] . length ; ++ j ) {
397
397
if ( j === this . highlightLevel [ i ] ) {
@@ -420,7 +420,7 @@ function drawCore (params, transparent) {
420
420
continue
421
421
}
422
422
shader . uniforms . permutation = PERMUTATIONS [ j ]
423
- gl . lineWidth ( this . contourWidth [ j ] )
423
+ gl . lineWidth ( this . contourWidth [ j ] * this . pixelRatio )
424
424
for ( var k = 0 ; k < this . contourLevels [ j ] . length ; ++ k ) {
425
425
if ( k === this . highlightLevel [ j ] ) {
426
426
shader . uniforms . contourColor = this . highlightColor [ j ]
@@ -450,7 +450,7 @@ function drawCore (params, transparent) {
450
450
shader . uniforms . model = uniforms . model
451
451
shader . uniforms . clipBounds = uniforms . clipBounds
452
452
shader . uniforms . permutation = PERMUTATIONS [ i ]
453
- gl . lineWidth ( this . dynamicWidth [ i ] )
453
+ gl . lineWidth ( this . dynamicWidth [ i ] * this . pixelRatio )
454
454
455
455
shader . uniforms . contourColor = this . dynamicColor [ i ]
456
456
shader . uniforms . contourTint = this . dynamicTint [ i ]
@@ -555,7 +555,7 @@ proto.drawPick = function (params) {
555
555
vao . bind ( )
556
556
557
557
for ( j = 0 ; j < 3 ; ++ j ) {
558
- gl . lineWidth ( this . contourWidth [ j ] )
558
+ gl . lineWidth ( this . contourWidth [ j ] * this . pixelRatio )
559
559
shader . uniforms . permutation = PERMUTATIONS [ j ]
560
560
for ( i = 0 ; i < this . contourLevels [ j ] . length ; ++ i ) {
561
561
if ( this . _contourCounts [ j ] [ i ] ) {
@@ -1272,6 +1272,7 @@ proto.highlight = function (selection) {
1272
1272
1273
1273
function createSurfacePlot ( params ) {
1274
1274
var gl = params . gl
1275
+
1275
1276
var shader = createShader ( gl )
1276
1277
var pickShader = createPickShader ( gl )
1277
1278
var contourShader = createContourShader ( gl )
0 commit comments