|
795 | 795 | if (zgridx && (zgridx.length > 0)) { |
796 | 796 |
|
797 | 797 | // var material = new THREE.LineBasicMaterial({ color: 0x0, linewidth: 0.5 }); |
798 | | - var material = new THREE.LineDashedMaterial( { color: 0x0, dashSize: 10, gapSize: 2, linewidth: 0.5 } ); |
| 798 | + var material = new THREE.LineDashedMaterial( { color: 0x0, dashSize: 10, gapSize: 2 } ); |
799 | 799 |
|
800 | 800 | var geom = new THREE.BufferGeometry(); |
801 | 801 | geom.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array(zgridx), 3 ) ); |
|
816 | 816 | if (zgridy && (zgridy.length > 0)) { |
817 | 817 |
|
818 | 818 | // var material = new THREE.LineBasicMaterial({ color: 0x0, linewidth: 0.5 }); |
819 | | - var material = new THREE.LineDashedMaterial( { color: 0x0, dashSize: 10, gapSize: 2, linewidth: 0.5 } ); |
| 819 | + var material = new THREE.LineDashedMaterial( { color: 0x0, dashSize: 10, gapSize: 2 } ); |
820 | 820 |
|
821 | 821 | var geom = new THREE.BufferGeometry(); |
822 | 822 | geom.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array(zgridy), 3 ) ); |
|
1357 | 1357 |
|
1358 | 1358 | var lcolor = JSROOT.Painter.root_colors[this.GetObject().fLineColor]; |
1359 | 1359 |
|
1360 | | - material = new THREE.LineBasicMaterial({ color: new THREE.Color(lcolor), linewidth: this.GetObject().fLineWidth }); |
1361 | | - |
| 1360 | + material = new THREE.LineBasicMaterial({ color: new THREE.Color(lcolor) }); |
| 1361 | + if (!JSROOT.browser.isIE) material.linewidth = this.GetObject().fLineWidth; |
1362 | 1362 | var line = new THREE.LineSegments(geometry, material); |
1363 | 1363 |
|
1364 | 1364 | /* |
|
1912 | 1912 | helper_geom.addAttribute( 'position', new THREE.BufferAttribute( helper_positions, 3 ) ); |
1913 | 1913 | } |
1914 | 1914 |
|
1915 | | - var helper_material = new THREE.LineBasicMaterial( { color: 0x000000, linewidth: 1.0 } ); |
| 1915 | + var helper_material = new THREE.LineBasicMaterial( { color: 0x000000 } ); |
1916 | 1916 |
|
1917 | 1917 | var lines = new THREE.LineSegments(helper_geom, helper_material ); |
1918 | 1918 |
|
|
0 commit comments