Skip to content

Commit ec2d83f

Browse files
authored
Merge pull request #13 from KBLLR/codex/add-or-update-hdr-file-and-document-location
Add HDR placeholder and document asset path
2 parents 1926b0d + fb8b3d9 commit ec2d83f

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,17 @@ A modern, high-performance 3D object stager specializing in Gaussian Splatting m
2929
- ESLint and Prettier configuration
3030
- Type support for Three.js
3131

32+
## Asset Structure
33+
34+
HDR environment maps should be stored in `src/assets/environmentMaps/hdr/`.
35+
The example scene loads `placeholder.hdr` from this directory.
36+
Update `main.js` if you use a different file name.
37+
3238
## Troubleshooting
3339

3440
### Rollup native module error
3541

36-
If you see an error such as `Cannot find module '@rollup/rollup-linux-x64-gnu'`,
37-
remove your current dependencies and lock file, then reinstall:
42+
If you see an error such as:
3843

3944
```bash
40-
rm -rf node_modules package-lock.json
41-
npm install
42-
```
43-
44-
This project has been built successfully using **Node.js v20.19.2**.
45+
Cannot find module '@rollup/rollup-linux-x64-gnu'

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ scene.add(ground);
195195

196196
// Environment
197197
const environment = new HDRIEnvironment({
198-
path: "/src/assets/environmentMaps/hdr/kloofendal_48d_partly_cloudy_puresky_2k.hdr",
198+
path: "/src/assets/environmentMaps/hdr/placeholder.hdr",
199199
intensity: 1.0,
200200
});
201201
environment.load(renderer).then((envMap) => {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:2966eafd55dd91aab8e18ce24504288898da1b9eeee3a63351b281945febcd67
3+
size 49

0 commit comments

Comments
 (0)