From 63508fd38d3a4571576d963ede253e124cf07f65 Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Fri, 8 Mar 2024 08:35:52 +0100 Subject: [PATCH] Update README.md: missing variable in sample code --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2200881dc..61d2e9b2e 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ scene.updateMatrixWorld(); // initialize the scene and update the material properties with the bvh, materials, etc const generator = new PathTracingSceneGenerator(); const { bvh, textures, materials, lights } = generator.generate( scene ); +const geometry = bvh.geometry; // update bvh and geometry attribute textures ptMaterial.bvh.updateFrom( bvh );