Threejs deform mesh from heightmap
问题 How can I go about deforming an already created mesh with a heightmap in three.js? I did a few searches and couldn't find anything, so I'm asking here. 回答1: You are lucky, three.js-r72 introduced vertex displacement in the MeshPhongMaterial . You set the displacement map like a normalMap : var displacementMap = THREE.ImageUtils.loadTexture( "textures/ninja/displacement.jpg" ); var material = new THREE.MeshPhongMaterial( { color: 0x0a0100, //... displacementMap: displacementMap,