Note: Currently not working in Safari (at least not on my iPad).
Previously, updating vertical exaggeration was slow because it meant rebuilding the entire terrain mesh. Instead of baking zPosition
into the position buffer attribute, I've turned it into a shader uniform. Updating zPosition
with setAttribute()
is now fast enough to animate (...on desktop anyway).
Uses aframe-terrain-model-component and Till Hinrichs' orbit-controls-component.
Updated missing url https://cdn.rawgit.com/tizzle/aframe-orbit-controls-component/v0.1.6/dist/aframe-orbit-controls-component.min.js to https://cdn.jsdelivr.net/gh/tizzle/aframe-orbit-controls-component/v0.1.6/dist/aframe-orbit-controls-component.min.js
https://aframe.io/releases/0.5.0/aframe.min.js
https://unpkg.com/aframe-terrain-model-component@0.2.3/dist/aframe-terrain-model-component.min.js
https://cdn.rawgit.com/tizzle/aframe-orbit-controls-component/v0.1.6/dist/aframe-orbit-controls-component.min.js