mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix has pbr
This commit is contained in:
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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user