Skip to content

Commit dbbd27e

Browse files
committed
fix: Make "3D Fish" asset paths absolute
1 parent 88d7d84 commit dbbd27e

File tree

1 file changed

+4
-4
lines changed
  • apps/typegpu-docs/src/content/examples/rendering/3d-fish

1 file changed

+4
-4
lines changed

apps/typegpu-docs/src/content/examples/rendering/3d-fish/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ context.configure({
3535
// https://sketchfab.com/3d-models/animated-low-poly-fish-64adc2e5a4be471e8279532b9610c878
3636
const fishModel = await loadModel(
3737
root,
38-
'assets/3d-fish/fish.obj',
39-
'assets/3d-fish/fish.jpg',
38+
'/TypeGPU/assets/3d-fish/fish.obj',
39+
'/TypeGPU/assets/3d-fish/fish.jpg',
4040
);
4141

4242
// https://www.cgtrader.com/free-3d-models/space/other/rainy-ocean
4343
// https://www.rawpixel.com/image/6032317/white-sand-texture-free-public-domain-cc0-photo
4444
const oceanFloorModel = await loadModel(
4545
root,
46-
'assets/3d-fish/ocean_floor.obj',
47-
'assets/3d-fish/ocean_floor.png',
46+
'/TypeGPU/assets/3d-fish/ocean_floor.obj',
47+
'/TypeGPU/assets/3d-fish/ocean_floor.png',
4848
);
4949

5050
// buffers

0 commit comments

Comments
 (0)