fix has pbr

This commit is contained in:
tresabhi committed 2026-08-12 13:41:59 -05:00
1 parent 56d5d5e956
commit 5092d43e8e
4 files changed
+19 -10

No files matched your search

@@ -1,3 +1,4 @@
import { useModel } from "../hooks/useModel";
import { Guess, GuessState } from "../stores/guess";
import { SmartCanvas } from "./SmartCanvas";
import { Controls } from "./Tankopedia/HeroSection/components/TankSandbox/components/Control";
@@ -12,6 +13,9 @@ export function GuessRenderer() {
const helpingReveal = Guess.use((state) => state.helpingReveal);
const isRevealed = helpingReveal || guessState !== GuessState.NotGuessed;
const id = Guess.use((state) => state.tank.id);
const { hasPbr } = useModel(id);
return (
<SmartCanvas
style={{
@@ -24,7 +28,7 @@ export function GuessRenderer() {
camera={{ position: [-5, 5, -5] }}
>
<Controls zoomable={false} />
<Lighting />
<Lighting hasPbr={hasPbr} />
<TankModel />
</SmartCanvas>
);