jimmikaelkael / GLSL-playground

Just me playing with GLSL shaders on procedural terrain generation directly on the GPU.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GLSL-playground

GLSL shaders for procedural terrain generation directly on the GPU.

Recently I became highly interested in procedural landscape generation, and especially with what you can do directly on a modern GPU using shaders. My goal is to achieve some procedural landscape generation demos using only a minimal texture set and using procedural textures everywhere it's possible.

Here's what have been done already:

  • height mapping (with procedural noise texture, Perlin, Simplex, etc...)
  • normal mapping (Sobel and Scharr operator)
  • ambient occlusion (not SSAO, but rather based on heightmap)
  • lighting (spherical harmonics)
  • skybox (cube and sphere map)
  • pixel shader demos (full screen quad geometry, ray marching)

The demos are using three.js, a JavaScript 3D Library which makes WebGL simpler: http://threejs.org

Some other very useful resources that were used:

About

Just me playing with GLSL shaders on procedural terrain generation directly on the GPU.

License:MIT License


Languages

Language:HTML 76.8%Language:JavaScript 23.2%Language:CSS 0.0%