Skip to content

Commit

Permalink
scalar: moves background transparent to be taken by threejs WebGL ren…
Browse files Browse the repository at this point in the history
…derer(#5567)
  • Loading branch information
japie1235813 authored Feb 15, 2022
1 parent b62a944 commit 806dd3e
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,9 @@ export class ThreeRenderer implements ObjectRenderer<CacheValue> {

this.renderer = new THREE.WebGLRenderer({
canvas: canvas as HTMLCanvasElement,
context: canvas.getContext('webgl2', {
antialias: true,
precision: 'highp',
alpha: true,
} as WebGLContextAttributes) as WebGLRenderingContext,
context: canvas.getContext('webgl2') as WebGLRenderingContext,
antialias: true,
alpha: true,
});
this.renderer.setPixelRatio(devicePixelRatio);
}
Expand Down

0 comments on commit 806dd3e

Please sign in to comment.