Ray Marching / Ray Tracing

Ray Marching Soft Shadows This is a simple ray marcher that renders dynamic soft shadows.

Liquid Sphere An Example of Noise + Ray Marching

Simple GPU Ray Tracer Ray Tracer Framework running on the GPU. Supports multiple materials, reflection, refraction, and hard shadows.

Morphing Ray Marched Cube

Noise Based Shaders

Trinity This shader demonstrates how to generate arbitrary laser beam lines.

Warped Hex Uses voronoi to generate an interesting effect.

Crazy Portal Another portal effect that uses voronoi noise.

Voronoi Portal This is an example of using the Voronoi texture basis function along with Fractional Brownian Motion.

Colorful Voronoi Noise A simple example of cellular based Voronoi noise.

Energy Field A slight variation of the Lightning shader using multiple passes of Fractional Brownian Motion.

Stormy Night How to implement lightning on the GPU using noise and lines.

Majestic Eye Uses perlin noise and gpu particles

Christmas Shader Uses perlin noise and pulse functions.

General Experiments

Majestic Wire Cube This example demonstrates how to create 3d objects using procedural lines in a way similar to how we do it in the game industry.

Kirby I wrote a tool that can generate a procedural glsl shader from an image file. This example demonstrates simple sprite animation.

Mario I wrote a tool that can take an image and convert it into a procedural glsl shader.

Flower Matrix The atan function can be used to create some really cool effects!

Gradient Ripple Effect Shows how to exploit a sine wave to make ripples.

Endless Tunnel Uses polar coordinates and a procedural texture to generate a 3d tunnel.

Ripple Uses some simple trig to generate a ripple.

Glowing Line A very simple glowing line example.

Glowing Lines An example of some simple trig to generate cool light saberish lines.

GPU Particle Effects

GPU Particle Demonstrates how to create a GPU particle in a shader.

GPU Particle Effect Example Demonstrates how to procedurally generate particles that can animate on the GPU.

Procedural Textures

Procedural Checkerboard Texture Demonstrates how to generate a checkerboard texture procedurally in a shader.

Ramp Texture (For Toon Shading) This shader allows you to very easily generate many permutations of a ramp texture typically used for a toon shader by adjusting just a few simple variables.

Fractals

Trig Fractal This is a simple fractal generated through the use of the tan function.

Practical Computer Graphics