Skip to content

WhackAMolePistons

Shader of the Week

This Fuse is based on the Shadertoy 'Whack-A-Mole Pistons' by blackle. © blackle (CC BY-NC-SA 3.0). Conversion to DCTL and encapsulation into a fuse done by JiPi. See ShaderOfTheWeek for more fuses in this category.

WhackAMolePistons Thumbnail WhackAMolePistonsGifAnim

A slightly older, but not bad shader. Very nice reflective surface created by an interesting calculation. Also the hash calculation is exceptional by using "floatBitsToInt".

The view can be changed with the help of the mouse parameters. The base color of the pistons can be customized. To use the "Sharpness" parameter, it is necessary to bind a texture to iChannel0. A texture is required on iChannel1 to use the MOTION_BLUR.

Screenshot

Description of the Shader in Shadertoy:

experimenting with 2D slicing the sphere packing SDF to get an array of circles of different sizes.

New: [url=https://youtu.be/I8fmkLK1OKg]The tutorial video[/url]

Compatibility

🟥 macOS / Metal

🟥 macOS / OpenCL

🟩 Windows / CUDA: checked

🟩 Windows / OpenCL: checked


 
 

Edit on the Shadertoy.com Playground   |   View the Fuse Source Code