Skip to content

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

License

Notifications You must be signed in to change notification settings

jimmikaelkael/GLSL-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published