GetAssetPack

Brick Mosaic Shader for Godot (Free)

Price
Free
Type
Sprites
Creator
Francisco Cidade
License
CC0
Dimensions
2D

Rebuilds an image from toy bricks with studs in a 16 color palette. 2D shader for Godot 4, free.

Available on

Search by image

Upload a reference to find previews with similar colors, contrast, and detail.

Brick Mosaic Shader for Godot (Free)

No preview
Francisco Cidade · itch.ioFree
2D
Sprites
CC0 · Public domain dedication
  • ✓ Commercial use, edits and redistribution
  • ✓ Attribution is optional
  • i Trademark and privacy rights still apply
Show full terms

Rebuilds an image from toy bricks with studs in a 16 color palette. 2D shader for Godot 4, free.

View original listing

Description

Rebuilds an image from round-stud toy bricks in a fixed 16 color palette, assembled piece by piece from the bottom of the image.

Godot 4.x (GL Compatibility, Mobile and Forward+). A CanvasItem shader: put it on a TextureRect, Sprite2D or ColorRect with a texture. Try it in your browser below, with sliders and live code editing.

What you get

Show full description...
  • Example project with the original image next to the effect
  • Brick size, stud size and baseplate color as parameters
  • CC0: public domain, no attribution needed

Parameters

  • brick_px: Size of one brick, in pixels of the source image.
  • progress: 0 = empty baseplate, 1 = built. Negative = loops by itself.
  • stud_size: Size of the round stud on each brick.
  • plate_color: Color of the baseplate shown before the bricks are placed.

How to use

  • Copy shaders/brick_mosaic.gdshader into your project.
  • Create a ShaderMaterial on your node and assign the shader.
  • Tweak the parameters in the Inspector, or set them from code with set_shader_parameter.

Set progress from code to build the picture brick by brick. Good for: toy and building games, a photo filter, reveal animations.

The example project opens in Godot 4.6 and shows the original image next to the effect.

More from me

Tags

2DbricksfilterfreeGodotgodot-shadermosaicpixelateShadersVisual Effects (VFX)

Downloads

Name your own price.