Skip to content

Commit

Permalink
Review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
arjxn-py committed Oct 1, 2024
1 parent fefcd2d commit 5d8dc84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/base/src/3dview/mainview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export class MainView extends React.Component<IProps, IStates> {

this._clock = new THREE.Clock();
// this._renderer.setPixelRatio(window.devicePixelRatio);
this._renderer.autoClear = false;
this._renderer.setClearColor(0x000000, 0);
this._renderer.setSize(500, 500, false);
this.divRef.current.appendChild(this._renderer.domElement); // mount using React ref
Expand Down Expand Up @@ -403,7 +404,7 @@ export class MainView extends React.Component<IProps, IStates> {

this._controls.update();
this._renderer.setRenderTarget(null);
this._renderer.autoClear = false;
this._renderer.clear();
this._renderer.render(this._scene, this._camera);
this._viewHelper.render(this._renderer);
};
Expand Down

0 comments on commit 5d8dc84

Please sign in to comment.