Plasma

Version 7 of 7

Domain-warped plasma.

GPU · GLSL · today

This version

Noise fed into noise fed into noise: fractal Brownian motion whose coordinates are warped by more fbm. The plasma grown into marbled smoke.

How this version works

At a configured render scale of 0.6, this shader constructs smooth value noise from hashed lattice points and cubic interpolation. Each fractal noise evaluation adds five octaves, rotating and doubling the coordinate scale while halving the amplitude. Two noise values form a first coordinate displacement, another pair forms a second displacement, and a final noise evaluation samples the twice-warped coordinates. The resulting fields mix dark purple, coral and pale yellow colours, then modulate brightness and apply a power of 0.9.

The trick in this version

All noise and coordinate warping are calculated procedurally within one fragment shader, without noise textures or intermediate render passes. The nested five-octave evaluations require substantially more arithmetic than the sine shader, and the lower render scale reduces the number of fragments processed.

Historical context · GPU

  1. 2015 · Salomonsson

    From tutorial to shader

    A documented walk from the sum-of-sines maths to a Shadertoy shader and then into a native application, the plasma as a teaching staple.

  2. 2013 · Iñigo Quilez & Pol Jeremias

    Shadertoy

    Shader code that runs per pixel, shared in the browser. A plasma becomes a five-line fragment shader at full resolution, the ‘hello world’ of a new generation.

Platform
GPU · GLSL
Era
GPU
Rendered on
GPU
Tags
fbm · domain warping
Sources
From tutorial to shader (2015)Shadertoy (2013)