mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +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 { useDuel } from '../../../../../stores/duel';
|
||||||
import { useTankopediaPersistent } from '../../../../../stores/tankopedia';
|
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() {
|
export function Lighting() {
|
||||||
const protagonist = useDuel((state) => state.protagonist!);
|
const protagonist = useDuel((state) => state.protagonist!);
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ export const useTankopediaPersistent = create<TankopediaPersistent>()(
|
|||||||
subscribeWithSelector<TankopediaPersistent>(() => ({
|
subscribeWithSelector<TankopediaPersistent>(() => ({
|
||||||
model: {
|
model: {
|
||||||
visual: {
|
visual: {
|
||||||
environment: 'warehouse',
|
environment: ENVIRONMENTS[0],
|
||||||
controlsEnabled: true,
|
controlsEnabled: true,
|
||||||
showGrid: true,
|
showGrid: true,
|
||||||
greenPenetration: false,
|
greenPenetration: false,
|
||||||
|
|||||||
Reference in new issue
Block a user