|
@@ -130,8 +130,6 @@ var RaytracingRenderer = function ( parameters ) {
|
|
|
canvasWidth = canvas.width;
|
|
|
canvasHeight = canvas.height;
|
|
|
|
|
|
- context.fillStyle = 'white';
|
|
|
-
|
|
|
pool.forEach( updateSettings );
|
|
|
|
|
|
};
|
|
@@ -181,7 +179,6 @@ var RaytracingRenderer = function ( parameters ) {
|
|
|
} );
|
|
|
|
|
|
context.fillStyle = '#' + worker.color;
|
|
|
-
|
|
|
context.fillRect( blockX, blockY, blockSize, blockSize );
|
|
|
|
|
|
}
|
|
@@ -252,7 +249,9 @@ var RaytracingRenderer = function ( parameters ) {
|
|
|
|
|
|
} );
|
|
|
|
|
|
- context.clearRect( 0, 0, canvasWidth, canvasHeight );
|
|
|
+ context.fillStyle = clearColor.getStyle();
|
|
|
+ context.fillRect( 0, 0, canvasWidth, canvasHeight );
|
|
|
+
|
|
|
reallyThen = Date.now();
|
|
|
|
|
|
xblocks = Math.ceil( canvasWidth / blockSize );
|