diff --git a/src/data/world/waterConfig.ts b/src/data/world/waterConfig.ts index 8cacc50..12de85b 100644 --- a/src/data/world/waterConfig.ts +++ b/src/data/world/waterConfig.ts @@ -3,7 +3,9 @@ import type { Vector3Tuple } from "@/types/three/three"; export interface WaterSurfaceConfig { position: Vector3Tuple; + rotation: Vector3Tuple; size: [number, number]; + renderOrder: number; } export const WATER_SHADER_CONFIG = { @@ -30,6 +32,8 @@ export const WATER_SHADER_CONFIG = { export const WATER_SURFACES: WaterSurfaceConfig[] = [ { position: [62, TERRAIN_WATER_HEIGHT, -82], + rotation: [0, 0, 0], size: [75, 42], + renderOrder: 0, }, ]; diff --git a/src/world/water/WaterSurface.tsx b/src/world/water/WaterSurface.tsx index 93c039c..c166dad 100644 --- a/src/world/water/WaterSurface.tsx +++ b/src/world/water/WaterSurface.tsx @@ -10,6 +10,8 @@ import { export function WaterSurface({ position, + renderOrder, + rotation, size, }: WaterSurfaceConfig): React.JSX.Element { const materialRef = useRef(null); @@ -46,11 +48,16 @@ export function WaterSurface({ }); return ( - +