-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #786 from cx20/update_khronos_gltf_rv_to_latest
[WIP] Update Khronos glTF Sample Viewer from v1.0 to v2.0
- Loading branch information
Showing
3 changed files
with
75 additions
and
41 deletions.
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 |
---|---|---|
|
@@ -14,15 +14,20 @@ | |
|
||
<link rel="stylesheet" href="styles.css"> | ||
|
||
<script src="https://rawcdn.githack.com/KhronosGroup/glTF-Sample-Viewer/4ba26a4a985bdcc7bf6ec2ef81ceaa11de43812d/libs/dat.gui.min.js"></script> | ||
<script src="https://rawcdn.githack.com/KhronosGroup/glTF-Sample-Viewer/4ba26a4a985bdcc7bf6ec2ef81ceaa11de43812d/libs/stats.min.js"></script> | ||
<script src="../../libs/khronos-gltf-rv/1.0.0/gltf-reference-viewer.umd.js"></script> | ||
<script src="https://www.gstatic.com/draco/v1/decoders/draco_decoder_gltf.js"></script> | ||
<script src="https://github.khronos.org/glTF-Sample-Viewer-Release/libs/libktx.js"></script> | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"gltf-viewer": "https://unpkg.com/@khronosgroup/[email protected]/dist/gltf-viewer.module.js" | ||
} | ||
} | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<div id="gltf-rv-model-spinner"> </div> | ||
<canvas id="canvas">No Canvas!</canvas> | ||
<script src="index.js"></script> | ||
<canvas id="canvas" width="768" height="768">No Canvas!</canvas> | ||
<script type="module" src="index.js"></script> | ||
</body> | ||
|
||
</html> |
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
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