Add lastReflectionUpdateTime to RuntimeWaterContactUniformBinding

This commit is contained in:
2026-04-07 07:12:47 +02:00
parent be7ccc93e8
commit 5d87c62754

View File

@@ -91,9 +91,11 @@ interface RuntimeWaterContactUniformBinding {
reflectionMatrixUniform: { value: Matrix4 } | null;
reflectionEnabledUniform: { value: number } | null;
reflectionRenderTarget: WebGLRenderTarget | null;
lastReflectionUpdateTime: number;
}
const FALLBACK_FACE_COLOR = 0x747d89;
const WATER_REFLECTION_UPDATE_INTERVAL_MS = 96;
export class RuntimeHost {
private readonly scene = new Scene();