All examples By author By category About

bryik

Animating Terrain

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.