Skip to content

Commit dafb2de

Browse files
authored
Merge pull request #28 from LykenSol/MlfGR4
Ported "Voxel Pac-Man" (https://www.shadertoy.com/view/MlfGR4).
2 parents 992efe7 + ac1e27d commit dafb2de

File tree

2 files changed

+401
-0
lines changed

2 files changed

+401
-0
lines changed

shaders/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ pub mod soft_shadow_variation;
3434
pub mod tileable_water_caustic;
3535
pub mod tokyo;
3636
pub mod two_tweets;
37+
pub mod voxel_pac_man;
3738

3839
pub trait SampleCube: Copy {
3940
fn sample_cube(self, p: Vec3) -> Vec4;
@@ -217,6 +218,12 @@ pub fn fs(constants: &ShaderConstants, mut frag_coord: Vec2) -> Vec4 {
217218
mouse,
218219
})
219220
.main_image(&mut color, frag_coord),
221+
27 => voxel_pac_man::State::new(voxel_pac_man::Inputs {
222+
resolution,
223+
time,
224+
mouse,
225+
})
226+
.main_image(&mut color, frag_coord),
220227
_ => {}
221228
}
222229
pow(color.truncate(), 2.2).extend(color.w)

0 commit comments

Comments
 (0)