Cubecraft

  • WebGL
  • JavaScript
  • computer graphics
  • linear algebra
  • voxels
  • procedural terrain
  • Perlin Noise
  • game engine

Voxel engine written with raw WebGL (no libraries) and inspired by Minecraft. The terrain is procedurally generated and editable.

I created this to explore modern, shader-based rendering with WebGL and JavaScript. It’s really just a lot of linear algebra.

Controls

  • Fly through the world using WASD, Shift (fly down), and Space (fly up).
  • Left click to place a block.
  • Right click to remove a block.

Screenshots

Level is defined as a 3D matrix.
Blocks can be created and destroyed.
Terrain is procedurally generated with Perlin Noise.
Perlin Noise
terrain underside