Skip to content

Instantly share code, notes, and snippets.

@UXVirtual
Last active November 15, 2017 02:37
Show Gist options
  • Save UXVirtual/b157ff45afbd595543d2b03b36a2aef6 to your computer and use it in GitHub Desktop.
Save UXVirtual/b157ff45afbd595543d2b03b36a2aef6 to your computer and use it in GitHub Desktop.
A-Frame PBR Demo
<a-scene main pbr-skybox="path: assets/img/environment/Bridge2/; entities: #model; setSkybox: false">
<a-assets>
<a-asset-item id="helmet-model" src="assets/gltf/damaged-helmet/DamagedHelmet.gltf"></a-asset-item>
</a-assets>
<a-entity id="model" gltf-model="#helmet-model" rotation="0 180 0"></a-entity>
<a-entity cubemap="folder: assets/img/environment/skybox/"></a-entity>
<a-camera id="camera" camera mouse-cursor position="-0.116 -0.242 2.782" rotation="4.958 -2.586 0" orbit-controls="target: #model; minDistance:2; maxDistance:4;"></a-camera>
</a-scene>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment