mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.2.02
This commit is contained in:
parent
2ba1332eec
commit
a3fa5443d6
16 changed files with 137 additions and 113 deletions
|
|
@ -190,7 +190,7 @@ async function startGlobe(canvas) {
|
|||
// create globe mesh just from svg
|
||||
async function addGlobe3dMesh() {
|
||||
threeD.material = new THREE.MeshLambertMaterial();
|
||||
const url = await getMapURL("mesh");
|
||||
const url = await getMapURL("mesh", "globe");
|
||||
threeD.material.map = new THREE.TextureLoader().load(url, render);
|
||||
threeD.mesh = new THREE.Mesh(new THREE.SphereBufferGeometry(1, 64, 64), threeD.material);
|
||||
threeD.scene.add(threeD.mesh);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue