Skip to content

Commit a2645ae

Browse files
committed
Ported "Luminescence" (https://www.shadertoy.com/view/4sXBRn).
1 parent 5e71b6c commit a2645ae

File tree

3 files changed

+638
-1
lines changed

3 files changed

+638
-1
lines changed

shaders/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub mod flappy_bird;
1818
pub mod galaxy_of_universes;
1919
pub mod geodesic_tiling;
2020
pub mod heart;
21+
pub mod luminescence;
2122
pub mod mandelbrot_smooth;
2223
pub mod miracle_snowflakes;
2324
pub mod morphing;
@@ -210,6 +211,12 @@ pub fn fs(constants: &ShaderConstants, mut frag_coord: Vec2) -> Vec4 {
210211
mouse,
211212
})
212213
.main_image(&mut color, frag_coord),
214+
26 => luminescence::State::new(luminescence::Inputs {
215+
resolution,
216+
time,
217+
mouse,
218+
})
219+
.main_image(&mut color, frag_coord),
213220
_ => {}
214221
}
215222
pow(color.truncate(), 2.2).extend(color.w)

0 commit comments

Comments
 (0)