Skip to content

Commit

Permalink
Merge pull request #553 from KhronosGroup/fetch_environments
Browse files Browse the repository at this point in the history
Fetch environments via url
  • Loading branch information
UX3D-haertl committed Jul 11, 2024
2 parents 4fdfedb + b137db0 commit 4549500
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "assets/environments"]
path = assets/environments
url = https://github.com/KhronosGroup/glTF-Sample-Environments.git
1 change: 0 additions & 1 deletion app_web/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default {
copy({
targets: [
{ src: ["index.html", "main.js"], dest: "dist/" },
{ src: ["../assets/environments/*.hdr", "../assets/environments/*.jpg", "!../asset/environments/.git"], dest: "dist/assets/environments" },
{ src: ["../assets/images"], dest: "dist/assets" },
{ src: ["../assets/ui"], dest: "dist/assets" },
{ src: ["../source/libs/*", "!../source/libs/hdrpng.js"], dest: "dist/libs" }
Expand Down
2 changes: 1 addition & 1 deletion app_web/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default async () => {
Colorful_Studio: "Colorful Studio",
Wide_Street: "Wide Street",
},
"assets/environments/"
"https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Environments/low_resolution_hdrs/",
);

const uiModel = new UIModel(app, pathProvider, environmentPaths);
Expand Down
1 change: 0 additions & 1 deletion assets/environments
Submodule environments deleted from b710a9

0 comments on commit 4549500

Please sign in to comment.