Skip to content

andrewlowndes/shadertoy

Repository files navigation

Shadertoy Demos

Source code for the shadertoy demos

Ray tracing quadrics generically, based on the paper ' Ray Tracing Arbitrary Objects on the GPU' by A. Wood et al.

Tracing quadrics

An effect like the Apple Watch UI.

Apple Watch UI Effect

Render an arc from three points

Arc from three points

Triangle with antialiasing, computed using the analytical area of the triangle under the pixel (coverage).

Coverage antialiasing

A fake 3D curtain transition effect (from left to right).

Curtain effect

A simple effect by offsetting the uv.

Drain effect

Implementation of the Loop/Blinn quadratic Bezier curve rendering algorithm using barycentric coordinates to simulate the vertex interpolation stage.

Quadratic bezier (Loop/Blinn)

Rendering a quadratic bezier using a transformation matrix, inspired by the Loop/Blinn paper (https://developer.nvidia.com/gpugems/gpugems3/part-iv-image-effects/chapter-25-rendering-vector-art-gpu)

Quadratic bezier (matrix)

Example of brute-force (per-pixel) averaging of a texture colour for a triangle (integral).

Triangle integration (brute force)

Simple rendering of a waveform (1d equation based on time)

Visualising waveforms

Releases

No releases published

Packages

No packages published

Languages