Skip to content

Commit eecf9d0

Browse files
committed
Made canvas interactive particles rendering in Firefox more consistent with Chrome.
It seems lineWidth defaults are different in Chrome and Firefox. Still there are some clearing artefacts in Firefox :/
1 parent 272d23c commit eecf9d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/canvas_interactive_particles.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
var programStroke = function ( context ) {
3939

40+
context.lineWidth = 0.05;
4041
context.beginPath();
4142
context.arc( 0, 0, 1, 0, PI2, true );
4243
context.closePath();
@@ -84,7 +85,7 @@
8485
renderer = new THREE.CanvasRenderer();
8586
renderer.setSize( window.innerWidth, window.innerHeight );
8687

87-
container.appendChild(renderer.domElement);
88+
container.appendChild( renderer.domElement );
8889

8990
stats = new Stats();
9091
stats.domElement.style.position = 'absolute';

0 commit comments

Comments
 (0)