Repository navigation
Caustics 0.1.0: the live picture as the floor of a pool under moving water, lit by the net of bright lines its waves focus, as Yuksel and Keyser compute them - #26
Merged
Conversation
…water, lit by the net of bright lines its waves focus, as Yuksel and Keyser compute them The water is a wave equation under slow swells, pushed into broad wakes by what moves and by a raindrop on each beat. A compute shader gathers the light each patch of floor gets from the surface above it; the floor is seen through the surface, lit, and tinted by the depth. Showreel 0.1.25 with twenty-five effects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Caustics makes the picture the floor of a pool under moving water, lit
by the net of bright lines the waves focus (board #4671).
damped wave equation stepped once a frame (as Evan Wallace's WebGL
Water steps it, MIT), with a little viscosity so the grid's
checkerboard dies first. Ten slow swells from a build-time table lie
on top, computed every frame from their clock, never played back.
What moves pushes the water into broad wakes (the change since the
input's last frame, blurred), and each beat drops a raindrop.
shader. Each 16 x 16 patch of a 640 x 360 floor tallies, in shared
memory, the fixed one-pixel square every surface sample within 16
pixels lands on it. All the light is kept at Depth 1 (95% at 2, so
Depth stops there). Rainbow refracts three colors apart.
what the depth would bend it), lit by the caustics, absorbed red
first by the depth, the sun glinting, the red guard on every pixel.
Input 3 makes the water shallower over what is nearer.
second; broad swells, wakes blurred over 10 of the water's pixels and
drops a ninth of the height in radius keep every clip and common
setting at its clip's own or the half-flash margin, red 0 everywhere,
the corners 1.5.
the M2 Pro; nothing cooks while unused (0 of 234).
shape by its ray's spread (here every square is one pixel); NVIDIA's
US 12,315,070 carries light particles across frames (here nothing is
carried); ByteDance's US 11,854,121 picks ripple maps from a prepared
sequence (here the water is simulated) (private/patents/caustics.md).
Also: Showreel 0.1.25 with twenty-five effects (idle 0 of 7303, Cycle
4.2 ms GPU, flash within each setting), the README row, status and hero
(2, seven rows of three, two of two), and BUILDING.md gains Caustics'
flash traps and the shared-memory tally pattern.