zone rendering

This commit is contained in:
wass08
2026-01-22 11:44:04 +09:00
parent 68e573f494
commit 36b7117173
4 changed files with 58 additions and 25 deletions
@@ -0,0 +1,17 @@
import { useRegistry, type Zone } from "@pascal-app/core";
import { useRef } from "react";
import type { Group } from "three";
export const ZoneRenderer = ({ zoneId }: { zoneId: Zone["id"] }) => {
const ref = useRef<Group>(null!);
useRegistry(zoneId, "zone", ref);
return (
<mesh ref={ref}>
{/* <shapeGeometry /> */}
<boxGeometry args={[1, 1, 1]} />
<meshBasicNodeMaterial color="pink" />
</mesh>
);
};