![]() Var frame = new THREE.SpotLightHelper(sun) Var sun = new THREE.DirectionalLight(0xFFFFFF, 1.0) Var canvas = document.createElement('canvas') ĭata = context.getImageData(0, 0, WIDTH, HEIGHT).data Ĭamera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight. I want, like i said, a smooth terrain, so am I doing something wrong or is this just the result and i need to smoothen it afterwards somehow?Īlso here is my code: const IMAGE_SRC = 'terrain2.png' but here's an even better thing: a live demo! left click + drag to rotate, scroll to zoom) (Sorry, this is my first question and evidently I need 10 reputation to post images, otherwise I would. ![]() I am currently trying to create some smooth terrain using the PlaneBufferGeometry of three.js from a height map I got from Google Images:
0 Comments
Leave a Reply. |