Skip to content

Commit 68749b1

Browse files
authored
Merge pull request #25 from LykenSol/Xtf3zn
Ported "Tokyo" (https://www.shadertoy.com/view/Xtf3zn).
2 parents 05bb818 + 8810d75 commit 68749b1

File tree

2 files changed

+549
-0
lines changed

2 files changed

+549
-0
lines changed

shaders/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pub mod seascape;
3030
pub mod skyline;
3131
pub mod soft_shadow_variation;
3232
pub mod tileable_water_caustic;
33+
pub mod tokyo;
3334
pub mod two_tweets;
3435

3536
pub trait SampleCube: Copy {
@@ -199,6 +200,9 @@ pub fn fs(constants: &ShaderConstants, mut frag_coord: Vec2) -> Vec4 {
199200
.main_image(&mut color, frag_coord),
200201
23 => flappy_bird::State::new(flappy_bird::Inputs { resolution, time })
201202
.main_image(&mut color, frag_coord),
203+
24 => {
204+
tokyo::State::new(tokyo::Inputs { resolution, time }).main_image(&mut color, frag_coord)
205+
}
202206
_ => {}
203207
}
204208
pow(color.truncate(), 2.2).extend(color.w)

0 commit comments

Comments
 (0)