Skip to content

Commit

Permalink
Update example model
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenvergenz committed Feb 8, 2018
1 parent 2529fc2 commit 8b6cf05
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions examples/aframe/native-gltf.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,12 @@
<html>
<head>
<title>Native glTF</title>
<script src="https://aframe.io/releases/0.7.1/aframe.js"></script>
<script src="https://aframe.io/releases/0.7.0/aframe.js"></script>
<script src='../../dist/altspace.js'></script>
<script>
AFRAME.registerComponent('detect-click', {
init: function(){
var self = this;
this.el.addEventListener('click', function(){
self.el.nextElementSibling.setAttribute('color', '#0f0');
});
}
});
</script>
</head>
<body>
<a-scene altspace>
<a-entity id='sdk' position='-.5 0 0' gltf-model='resources/glTF/Corset.gltf'></a-entity>
<a-entity id='native' position='.5 0 0' n-gltf='url: resources/glTF/Corset.gltf; scene-index: 0'></a-entity>
<a-entity id='native' n-gltf='url: https://rawgit.com/KhronosGroup/glTF-Sample-Models/master/2.0/DamagedHelmet/glTF/DamagedHelmet.gltf'></a-entity>
</a-scene>
</body>
</html>

0 comments on commit 8b6cf05

Please sign in to comment.