tune(environment): make water surface adjustable

This commit is contained in:
Tom Boullay
2026-05-26 22:05:00 +02:00
parent fbe8c0c854
commit fd558db034
2 changed files with 12 additions and 1 deletions
+4
View File
@@ -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,
},
];