mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: new lighting
This commit is contained in:
1 parent
1b611fa7c4
commit
bc85b354a0
2 files changed
+9
-2
No files matched your search
@@ -3,7 +3,14 @@ import { useModel } from '../../../../../hooks/useModel';
|
||||
import { useDuel } from '../../../../../stores/duel';
|
||||
import { useTankopediaPersistent } from '../../../../../stores/tankopedia';
|
||||
|
||||
export const ENVIRONMENTS = ['warehouse', 'dawn', 'sunset'] as const;
|
||||
export const ENVIRONMENTS = [
|
||||
'lobby',
|
||||
'apartment',
|
||||
'warehouse',
|
||||
'dawn',
|
||||
'sunset',
|
||||
'night',
|
||||
] as const;
|
||||
|
||||
export function Lighting() {
|
||||
const protagonist = useDuel((state) => state.protagonist!);
|
||||
|
||||
@@ -131,7 +131,7 @@ export const useTankopediaPersistent = create<TankopediaPersistent>()(
|
||||
subscribeWithSelector<TankopediaPersistent>(() => ({
|
||||
model: {
|
||||
visual: {
|
||||
environment: 'warehouse',
|
||||
environment: ENVIRONMENTS[0],
|
||||
controlsEnabled: true,
|
||||
showGrid: true,
|
||||
greenPenetration: false,
|
||||
|
||||
Reference in new issue
Block a user