feat: add NetShader and UnicolorShader with a debug component for visual testing in the world scene

This commit is contained in:
math-pixel
2026-05-19 22:54:29 +02:00
parent ae34dc38ed
commit 8b619bfc28
4 changed files with 127 additions and 0 deletions
+2
View File
@@ -28,6 +28,7 @@ import { GameMap } from "@/world/GameMap";
import { GameStageContent } from "@/world/GameStageContent";
import { Player } from "@/world/player/Player";
import { TestMap } from "@/world/debug/TestMap";
import { NetTest } from "@/components/three/debug/NetTest";
import type { SceneLoadingChangeHandler } from "@/types/world/sceneLoading";
interface WorldProps {
@@ -99,6 +100,7 @@ export function World({ onLoadingStateChange }: WorldProps): React.JSX.Element {
</>
) : (
<TestMap onOctreeReady={handleOctreeReady} />
<NetTest />
)}
{sceneMode !== "game" && spawnPlayer ? (