Rasterizer, ray tracer and planet shaders
Experiments in the spirit of well-known open-source graphics projects: a software rasterizer, a ray tracer, procedural planets, fluid particles and more, rebuilt as pixel shaders.
There are 8 shaders here. Open one to see the target picture, the techniques it uses and a step-by-step approach, then write it yourself in HLSL (Unity, Unreal), GLSL (Shadertoy, three.js), WGSL (WebGPU), Metal or Godot.
- Gradient editor: four color stops Easy

- Software rasterizer: one triangle Medium

- Field of view with a wall Medium

- Scattered dots (jittered grid) Medium

- Ray tracing: spheres, shadows and a mirror bounce Hard

- Procedural planet with an atmosphere Hard

- Fluid particles: the density field Hard

- Eroded mountains with hillshade Hard

More shader topics
Visual effect shaders · Fire, cloud and nature shaders · 3D shaders in a pixel shader · Procedural pattern shaders · 2D shape shaders · Post-processing and filter shaders · Water shaders · Ray marching shaders · Game effect shaders · Mesh, vertex and toon shaders