Skip to content

Commit

Permalink
fix: renderer settings
Browse files Browse the repository at this point in the history
  • Loading branch information
r0man1337 committed Dec 16, 2024
1 parent 1b98686 commit e096993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/three/GameRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ export default class GameRenderer {
this.renderer = new THREE.WebGLRenderer({
powerPreference: "high-performance",
antialias: false,
stencil: false,
depth: false,
stencil: this.graphicsSetting === GraphicsSettings.LOW,
depth: this.graphicsSetting === GraphicsSettings.LOW,
});
this.renderer.setPixelRatio(this.graphicsSetting !== GraphicsSettings.HIGH ? 0.75 : window.devicePixelRatio);
this.renderer.shadowMap.enabled = this.graphicsSetting !== GraphicsSettings.LOW;
Expand Down

0 comments on commit e096993

Please sign in to comment.