-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
408be16
commit a8294dc
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,22 @@ npm start | |
``` | ||
|
||
Then navigate to __[http://localhost:3333/examples/](http://localhost:3333/examples/)__ | ||
|
||
## Self-hosting the sample-assets directory | ||
|
||
The textures modal is using https://aframe.io/sample-assets/dist/images.json | ||
to get the available textures. | ||
The GitHub repository for those assets is https://github.com/aframevr/sample-assets | ||
|
||
If you want to self-host this directory, do the following: | ||
|
||
```bash | ||
cd examples | ||
git clone [email protected]:aframevr/sample-assets.git | ||
``` | ||
|
||
edit `index.html` and define before any script tag this global variable: | ||
|
||
```html | ||
<script>window.AFRAME_SAMPLE_ASSETS_ROOT = "./sample-assets/";</script> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
<head> | ||
<meta charset="utf-8"> | ||
<title>Example Scene</title> | ||
<!--<script>window.AFRAME_SAMPLE_ASSETS_ROOT = "./sample-assets/";</script>--> | ||
<script src="https://cdn.jsdelivr.net/gh/aframevr/aframe@master/dist/aframe-master.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script> | ||
</head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters