Skip to content

Commit b7faacc

Browse files
mvaligurskyMartin Valigursky
andauthored
fix: initialize cameraFov observer to match actual camera FOV in LOD streaming example (#8510)
The FOV slider defaulted to its minimum (10) because the cameraFov observer value was never set, while the camera was created with fov: 75. Made-with: Cursor Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
1 parent 6a6ad8d commit b7faacc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/src/examples/gaussian-splatting/lod-streaming.example.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ assetListLoader.load(() => {
149149
});
150150

151151
// initialize UI settings (must be after observer registration)
152+
data.set('cameraFov', 75);
152153
data.set('gpuSorting', false);
153154
data.set('culling', device.isWebGPU);
154155
data.set('compact', true);

0 commit comments

Comments
 (0)