Refactor fog handling and add reflection update timestamp

This commit is contained in:
2026-04-07 07:13:33 +02:00
parent 052b0a3bcb
commit bfb3eebd2c
2 changed files with 3 additions and 7 deletions

View File

@@ -190,6 +190,7 @@ interface ViewportWaterSurfaceBinding {
reflectionMatrixUniform: { value: Matrix4 } | null;
reflectionEnabledUniform: { value: number } | null;
reflectionRenderTarget: WebGLRenderTarget | null;
lastReflectionUpdateTime: number;
}
const BRUSH_SELECTED_EDGE_COLOR = 0xf7d2aa;
@@ -253,6 +254,7 @@ const GIZMO_RENDER_ORDER = 4_000;
const SCALE_SNAP_STEP = 0.1;
const MIN_SCALE_COMPONENT = 0.1;
const MIN_BOX_SIZE_COMPONENT = 0.01;
const WATER_REFLECTION_UPDATE_INTERVAL_MS = 96;
interface CachedMaterialTexture {
signature: string;