Skip to content

Commit

Permalink
Doge is now the default environment map (as requested in #127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Schmithüsen committed Dec 17, 2018
1 parent 1ddfb69 commit d3a34aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index_doge2.html → index_papermill.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>

<!-- Just create a rendering canvas like below and call gltf_rv! -->
<body onload="viewer = gltf_rv.gltf_rv('canvas', 'assets/models/2.0/model-index.json', false, undefined, '', 'BoomBox', 'Courtyard of the Doge\'s palace');">
<body onload="viewer = gltf_rv.gltf_rv('canvas', 'assets/models/2.0/model-index.json', false, undefined, '', 'BoomBox', 'Papermill Ruins E');">
<div id="gltf-rv-model-spinner"> </div>
<canvas id="canvas">No Canvas!</canvas>
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function gltf_rv(canvasId, index,
onRendererReady = undefined,
basePath = "",
initialModel = "BoomBox",
envMap = "Papermill Ruins E")
envMap = "Courtyard of the Doge's palace")
{
// TODO: Avoid depending on global variables.
const canvas = window.canvas = document.getElementById(canvasId);
Expand Down
3 changes: 2 additions & 1 deletion src/shader_cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class ShaderCache
src = src.replace(pattern, includeSource);

// remove the others
while (src.includes(pattern)) {
while (src.includes(pattern))
{
src = src.replace(pattern, "");
}

Expand Down

0 comments on commit d3a34aa

Please sign in to comment.