Skip to content

rtspw/WebGL-Tree-Generation

Repository files navigation

WebGL Tree Generation

Richard Tang, Nanxi Chen

The goal of this project was to randomly generate terrain and a tree to create a nature scene.

The project is currently deployed on github pages.

Features

The features currently implemented include:

  • terrain generation with parameters
  • tree generation with parameters
  • simple leaf particle system
  • fog shader to create the illusion of a larger world
  • working day/night cycle with sun/moon and shifting sky color

This project relies on the tiny graphics library for the control display and abstraction over WebGL's API.

How to Build

The project is bundled with webpack and output into the docs/ directory. To build, run:

npm install
npx webpack

The assets from the docs/ folder can then be served.

About

A randomly generated nature scene with a day/night cycle in WebGL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages