Skip to content

Randomly generated terrain using the Diamond-square algorithm with biomes randomly generated with perlin noise

Notifications You must be signed in to change notification settings

Perseus101/fractal-terrain

Repository files navigation

WebGL Shell

This is a basic WebGL environment with a mobile camera.

Click on the canvas to grab the mouse and look around, press escape to release the mouse.

Installation

These special instructions are for installing node-webgl, which is required for unit testing.

Linux

$ sudo add-apt-repository ppa:karcaw/atb
$ sudo apt update
$ sudo apt install libglfw3-dev libglew-dev libanttweakbar-dev

Mac

brew install anttweakbar freeimage

After installing the above dependencies, run:

  • npm install

Run in development

This will start a local server on http://localhost:3000 where you can view the code.

  • npm start

Running unit tests

Assuming you have correctly installed node-webgl, run npm test to run the unit tests.

About

Randomly generated terrain using the Diamond-square algorithm with biomes randomly generated with perlin noise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published