pagescene: prettier on the disposal helper and specs

This commit is contained in:
Tanish Manku
2026-10-06 17:46:29 -07:00
parent 83f600bd6f
commit 02bebc1d91
2 changed files with 7 additions and 2 deletions
@@ -33,7 +33,9 @@ export function disposeObject3D(root: THREE.Object3D): void {
// Every texture the tree's materials reference, as material properties or
// ShaderMaterial uniforms, deduplicated.
export function collectObjectTextures(root: THREE.Object3D): Set<THREE.Texture> {
export function collectObjectTextures(
root: THREE.Object3D,
): Set<THREE.Texture> {
return collectMaterialTextures(collectMaterials(root));
}
@@ -151,7 +151,10 @@ function makeScene(): Scene {
// Scene only tracks Water instances by identity; a plain mesh stands in.
function waterLikeMesh(): THREE.Mesh {
return new THREE.Mesh(new THREE.PlaneGeometry(), new THREE.MeshBasicMaterial());
return new THREE.Mesh(
new THREE.PlaneGeometry(),
new THREE.MeshBasicMaterial(),
);
}
// jsdom does not implement media playback, so stub the calls stopVideo makes.